/* CLAUDE 10-11: Quick edit (quickedit-ui.js): a light editor for one Library clip, in RipClip's dark world (the composer's
   near-black surfaces, green only on the one primary action). Phone first: full screen with the safe areas; on a wide
   screen the same editor is a centred modal. Everything is scoped to .qe so the site's global button, input and dialog
   rules (style.css, studio.css, interface.css) do not leak in. */
.qe {
  --q-bg: #0b0d0b;
  --q-surface: #131416;
  --q-raised: #1c1d21;
  --q-line: #2a2b30;
  --q-text: #eef3ed;
  --q-muted: #a9b0a8;
  --q-faint: #7d857d;
  --q-accent: #53fc18;
  --q-ink: #061000;
  --q-danger: #ff6a6a;
  --q-pad: 14px;
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--q-text);
  font: 14px/1.35 inherit;
  font-family: inherit;
  overflow: hidden;
}
.qe[open] {
  display: grid;
  place-items: center;
}
.qe::backdrop {
  background: #000d;
  backdrop-filter: blur(6px);
}
.qe *,
.qe *::before,
.qe *::after {
  box-sizing: border-box;
}
.qe [hidden] {
  display: none !important;
}
.qe button,
.qe button:hover,
.qe button:active {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  min-height: 0;
  min-width: 0;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.qe button:focus-visible,
.qe textarea:focus-visible,
.qe input:focus-visible,
.qe .qe-tl:focus-visible {
  outline: 2px solid var(--q-accent);
  outline-offset: 2px;
}
.qe-card:focus,
.qe-card:focus-visible {
  outline: none !important;
}
.qe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw);
  height: min(100dvh, 940px);
  background: var(--q-bg);
  border: 1px solid var(--q-line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 90px #000a;
}
@media (max-width: 640px), (max-height: 600px) {
  .qe-card {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
}

/* top bar */
.qe-top {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
  padding: 0 var(--q-pad);
}
.qe-top h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
.qe-cancel,
.qe-save {
  min-height: 44px !important;
  min-width: 64px !important;
  font-size: 15px;
  font-weight: 500;
}
.qe-cancel {
  justify-self: start;
  color: var(--q-text);
}
.qe-save {
  justify-self: end;
  color: var(--q-accent);
  font-weight: 700;
}
.qe-save:disabled {
  color: var(--q-faint);
  cursor: default;
}
.qe-note {
  flex: none;
  margin: 0 var(--q-pad) 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #2a2400;
  color: #ffe58a;
  font-size: 12px;
}

/* the picture */
.qe-stage-wrap {
  position: relative;
  flex: 1 1 0;
  min-height: 140px !important;
  display: grid;
  place-items: center;
  padding: 6px 12px;
}
.qe-stage {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  touch-action: manipulation;
}
.qe-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.qe-ov {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}
.qe-sel {
  position: absolute;
  pointer-events: none;
  border: 1.5px solid var(--q-accent);
  border-radius: 2px;
  transform-origin: 50% 50%;
}
.qe-hd,
.qe-rot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--q-accent);
  border: 2px solid var(--q-ink);
  pointer-events: auto;
  touch-action: none;
}
.qe-hd::after,
.qe-rot::after {
  content: '';
  position: absolute;
  inset: -15px;
}
.qe-hd.nw {
  left: -8px;
  top: -8px;
}
.qe-hd.ne {
  right: -8px;
  top: -8px;
}
.qe-hd.sw {
  left: -8px;
  bottom: -8px;
}
.qe-hd.se {
  right: -8px;
  bottom: -8px;
}
.qe-rot {
  left: calc(50% - 7px);
  top: -30px;
  background: var(--q-text);
}
.qe-sel.fixed .qe-hd,
.qe-sel.fixed .qe-rot {
  display: none;
}
.qe-skel {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  background: #101113;
  text-align: center;
}
.qe-skel-art {
  width: 56%;
  aspect-ratio: 9 / 16;
  max-height: 55%;
  border-radius: 12px;
  background: linear-gradient(100deg, #1a1b1f 30%, #25272c 50%, #1a1b1f 70%) 0 0 / 300% 100%;
  animation: qe-shimmer 1.4s linear infinite;
}
.qe-skel p {
  margin: 0;
  color: var(--q-muted);
  font-size: 13px;
}
.qe-skel.err .qe-skel-art {
  display: none;
}
.qe-skel.err p {
  color: var(--q-text);
  font-size: 14px;
}
.qe-skel progress,
.qe-saving progress {
  width: min(220px, 70%);
  height: 6px;
  accent-color: var(--q-accent);
}
@keyframes qe-shimmer {
  to {
    background-position: -300% 0;
  }
}
.qe-fs-exit {
  display: none !important;
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: 12px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000a !important;
  place-items: center;
}
.qe-stage-wrap:fullscreen,
.qe-card.theater .qe-stage-wrap {
  background: #000;
}
.qe-card.theater .qe-stage-wrap {
  position: fixed;
  inset: 0;
  z-index: 4;
}
.qe-stage-wrap:fullscreen .qe-fs-exit,
.qe-card.theater .qe-fs-exit {
  display: grid !important;
}

/* time, undo / redo, play */
.qe-bar {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  padding: 0 6px;
}
.qe-ur,
.qe-pf {
  display: flex;
  align-items: center;
}
.qe-pf {
  justify-content: flex-end;
}
.qe-bar button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--q-text);
}
.qe-bar button:active:not(:disabled) {
  background: #ffffff1f;
}
.qe-bar button:disabled {
  color: var(--q-faint);
  opacity: 0.55;
  cursor: default;
}
.qe-time {
  display: grid;
  justify-items: center;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.qe-now {
  font-size: 14px;
  font-weight: 600;
}
.qe-dur {
  font-size: 12px;
  color: var(--q-muted);
}

/* timeline */
.qe-tl {
  position: relative;
  flex: none;
  background: var(--q-surface);
  border-block: 1px solid var(--q-line);
}
.qe-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.qe-scroll::-webkit-scrollbar {
  display: none;
}
.qe-card.loading .qe-scroll,
.qe-card.loading .qe-playhead {
  visibility: hidden;
}
.qe-scroll.grab {
  cursor: grabbing;
}
.qe-inner {
  display: flex;
  width: max-content;
  min-width: 100%;
}
.qe-padl,
.qe-padr {
  flex: none;
}
.qe-track {
  position: relative;
  flex: none;
}
.qe-ruler {
  position: relative;
  height: 22px;
}
.qe-ruler i {
  position: absolute;
  top: 12px;
  width: 1px;
  height: 8px;
  background: var(--q-faint);
}
.qe-ruler b {
  position: absolute;
  bottom: 8px;
  left: 3px;
  font-size: 10px;
  font-weight: 500;
  color: var(--q-muted);
  font-variant-numeric: tabular-nums;
}
.qe-strip {
  position: relative;
  height: 52px;
  background: #000;
}
.qe-cells {
  display: flex;
  height: 100%;
}
.qe-cells canvas {
  flex: none;
  height: 100%;
  background: #17181b;
}
.qe-dim {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #000b;
  pointer-events: none;
}
.qe-dim.l {
  left: 0;
}
.qe-dim.r {
  right: 0;
}
.qe-win {
  position: absolute;
  top: 0;
  bottom: 0;
  border-block: 2.5px solid var(--q-text);
  pointer-events: none;
}
.qe-h {
  position: absolute;
  top: -2.5px;
  bottom: -2.5px;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 14px;
  background: var(--q-text) !important;
  pointer-events: auto;
  touch-action: none;
  display: grid;
  place-items: center;
}
.qe-h::before {
  content: '';
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: #3a3d40;
}
.qe-h::after {
  content: '';
  position: absolute;
  inset: -4px -16px;
}
.qe-hl {
  left: -14px;
  border-radius: 7px 0 0 7px !important;
}
.qe-hr {
  right: -14px;
  border-radius: 0 7px 7px 0 !important;
}
.qe-h:focus-visible {
  outline-offset: 1px;
}
.qe-lane {
  position: relative;
  min-height: 38px !important;
}
.qe-chip {
  position: absolute;
  height: 30px;
  min-width: 0 !important;
  min-height: 0 !important;
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 8px !important;
  background-color: #1f3a17 !important;
  background-image: var(--art);
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 22px;
  border: 1.5px solid #3f8f23 !important;
  touch-action: none;
  text-align: left;
  color: #d8ffcb;
  font-size: 11px;
  font-weight: 600;
}
.qe-chip-t {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #0b0d0bcc;
  pointer-events: none;
  white-space: nowrap;
}
.qe-chip.on {
  border-color: var(--q-accent) !important;
  box-shadow: 0 0 0 2px #53fc1855 !important;
}
.qe-chip.locked {
  background-color: #26272b !important;
  border-color: #3b3d42 !important;
  color: var(--q-muted);
}
.qe-playhead {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--q-accent);
  pointer-events: none;
  box-shadow: 0 0 0 1px #0008;
}
.qe-playhead::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -4px;
  width: 10px;
  height: 7px;
  background: var(--q-accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* the selected layer's bar, and the three tools */
.qe-layerbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 var(--q-pad);
  background: var(--q-surface);
  border-bottom: 1px solid var(--q-line);
}
.qe-lb-name {
  flex: 1;
  font-weight: 600;
}
.qe-lb-edit,
.qe-lb-del {
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 18px !important;
  background: var(--q-raised) !important;
  font-weight: 600;
}
.qe-lb-del {
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0 !important;
  color: var(--q-danger);
}
.qe-tools {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--q-bg);
  padding-bottom: env(safe-area-inset-bottom);
}
.qe-card .qe-tools {
  padding-bottom: 0;
}
.qe-tools button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 62px !important;
  font-size: 12px;
  font-weight: 500;
  color: var(--q-muted);
}
.qe-tools button[aria-expanded='true'] {
  color: var(--q-accent);
}
.qe-tools button:active {
  background: #ffffff12 !important;
}

/* sheets */
.qe-sheet {
  flex: none;
  display: flex;
  flex-direction: column;
  height: min(46dvh, 420px);
  min-height: 250px !important;
  background: var(--q-surface);
  border-top: 1px solid var(--q-line);
  border-radius: 18px 18px 0 0;
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.18s;
}
.qe-sheet.open {
  transform: none;
  opacity: 1;
}
.qe-sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 var(--q-pad);
}
.qe-sheet h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.qe-sheet-done {
  min-height: 44px !important;
  padding: 0 4px !important;
  color: var(--q-accent);
  font-weight: 700;
}
.qe-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 var(--q-pad) calc(14px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
.qe-card.sheet-open .qe-tl {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  border: 0;
}
.qe-card.sheet-open .qe-tools {
  display: none;
}
.qe-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}
.qe-chips button {
  flex: none;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 18px !important;
  background: var(--q-raised) !important;
  color: var(--q-muted);
  font-weight: 600;
}
.qe-chips button[aria-selected='true'] {
  background: var(--q-text) !important;
  color: var(--q-ink);
}
.qe-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qe-tile {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 6px !important;
  border: 2px solid transparent !important;
  border-radius: 12px !important;
  background: var(--q-raised) !important;
  text-align: center;
}
.qe-tile[aria-pressed='true'] {
  border-color: var(--q-accent) !important;
}
.qe-tile:active {
  transform: scale(0.97);
}
.qe-sample {
  display: grid;
  place-items: center;
  min-height: 62px !important;
  border-radius: 8px;
  background: linear-gradient(160deg, #2c3b47, #1a232b);
  color: #fff;
  overflow: hidden;
  line-height: 1.15;
  font-weight: 700;
  padding: 4px;
}
.qe-sample.none {
  color: var(--q-muted);
  font-size: 12px;
}
.qe-lines {
  text-align: center;
  display: inline-block;
}
.qe-lines span {
  display: inline-block;
  transition: transform 0.15s;
}
.qe-tile-name {
  font-size: 11px;
  line-height: 1.2;
  color: var(--q-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qe-tile-name b {
  font-weight: 600;
}
.qe-lines-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.qe-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  background: var(--q-raised);
  border: 1.5px solid transparent;
}
.qe-line.on {
  border-color: #53fc1888;
}
.qe-line.out {
  opacity: 0.55;
}
.qe-line-t {
  min-width: 52px !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--q-muted);
  background: #ffffff10 !important;
}
.qe-line textarea {
  width: 100%;
  min-height: 44px !important;
  max-height: 140px;
  resize: none;
  padding: 11px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--q-text);
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  overflow: hidden;
}
.qe-line textarea:focus {
  background: #0b0d0b;
}
.qe-line-x {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--q-faint);
}
.qe-line-x:active {
  color: var(--q-danger);
}
.qe-empty,
.qe-hint {
  margin: 14px 0;
  color: var(--q-muted);
  font-size: 13px;
  text-align: center;
}
.qe-hint {
  text-align: left;
  margin: 0 0 10px;
}
.qe-add {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.qe-add button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px !important;
  border-radius: 12px !important;
  background: var(--q-raised) !important;
  font-weight: 600;
}
.qe-add button:active {
  transform: scale(0.98);
}
.qe-layers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.qe-layers button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px !important;
  padding: 6px 10px !important;
  border-radius: 12px !important;
  background: var(--q-raised) !important;
  text-align: left;
}
.qe-layers img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.qe-ed {
  display: grid;
  gap: 4px;
}
.qe-ed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.qe-del {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px !important;
  padding: 0 12px !important;
  border-radius: 20px !important;
  background: var(--q-raised) !important;
  color: var(--q-danger);
  font-weight: 600;
}
.qe-field {
  display: grid;
  grid-template-columns: 64px 1fr 48px;
  align-items: center;
  gap: 10px;
  min-height: 44px !important;
}
.qe-field span {
  color: var(--q-muted);
  font-size: 13px;
}
.qe-field output {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.qe-field input[type='range'] {
  width: 100%;
  height: 28px;
  accent-color: var(--q-accent);
  background: transparent;
}
.qe-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}
.qe-seg button {
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 18px !important;
  background: var(--q-raised) !important;
  font-size: 12px;
}
.qe-seg button[aria-checked='true'] {
  background: var(--q-text) !important;
  color: var(--q-ink);
  font-weight: 700;
}
.qe-pick-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.qe-back {
  min-height: 44px !important;
  padding: 0 8px !important;
  color: var(--q-muted);
  font-weight: 600;
}
.qe-search,
.qe-up {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px !important;
  padding: 0 12px;
  border-radius: 22px;
  background: var(--q-raised);
  color: var(--q-muted);
  cursor: pointer;
}
.qe-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--q-text);
  font: inherit;
  font-size: 16px;
  height: 40px;
  margin: 0;
  padding: 0;
}
.qe-up {
  justify-content: center;
  color: var(--q-text);
  font-weight: 600;
}
.qe-emoji,
.qe-pics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
}
.qe-pics {
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}
.qe-emoji button,
.qe-pics button {
  aspect-ratio: 1;
  border-radius: 10px !important;
  background: var(--q-raised) !important;
  display: grid;
  place-items: center;
  padding: 6px !important;
}
.qe-emoji button:active,
.qe-pics button:active {
  transform: scale(0.94);
}
.qe-emoji img,
.qe-pics img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.qe-emoji .qe-empty,
.qe-pics .qe-empty {
  grid-column: 1 / -1;
}

/* messages, saving, discard */
.qe-msg {
  position: absolute;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 6;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 10px 16px;
  border-radius: 14px;
  background: #26272bf2;
  border: 1px solid var(--q-line);
  font-size: 13px;
  text-align: center;
  box-shadow: 0 10px 30px #0008;
}
.qe-cover {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000c;
  backdrop-filter: blur(4px);
}
.qe-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(320px, 100%);
  padding: 24px 22px 20px;
  border-radius: 20px;
  background: var(--q-surface);
  border: 1px solid var(--q-line);
  text-align: center;
}
.qe-panel h3 {
  margin: 0;
  font-size: 17px;
}
.qe-panel p,
.qe-sub {
  margin: 0;
  color: var(--q-muted);
  font-size: 13px;
}
.qe-ok {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--q-accent);
  color: var(--q-ink);
}
.qe-new {
  width: 96px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}
.qe-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.qe-row button {
  min-height: 44px !important;
  padding: 0 18px !important;
  border-radius: 22px !important;
  background: var(--q-raised) !important;
  font-weight: 600;
}
.qe-row button.primary {
  background: var(--q-accent) !important;
  color: var(--q-ink) !important;
}
.qe-row button.qe-discard {
  background: var(--q-danger) !important;
  color: #1a0000 !important;
}
.qe-skel .qe-row {
  display: flex;
  margin-top: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .qe-sheet {
    transition: none;
  }
  .qe-skel-art {
    animation: none;
  }
  .qe-lines span {
    transition: none;
  }
}
@media (hover: hover) {
  .qe-tile:hover,
  .qe-add button:hover,
  .qe-layers button:hover {
    background: #26272c !important;
  }
}

/* the Library's three actions on a card, and in the clip viewer */
.lib-card .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.lib-card .actions button.lib-quick {
  grid-column: 1 / -1;
  min-height: 44px !important;
  background: var(--accent, #53fc18);
  border-color: var(--accent, #53fc18);
  color: var(--accent-ink, #0d0d0f);
  font-weight: 700;
}
.lib-card .actions button.lib-sec {
  min-height: 44px !important;
  background: transparent;
  border: 1px solid #3e3e40;
  color: #cccccf;
  font-weight: 500;
}
.lib-card .actions button.lib-sec:hover {
  border-color: #6a6a6e;
  color: #fff;
}
.lib-card .actions button:active {
  transform: scale(0.97);
}
.library-player .lp-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 0;
}
.library-player .lp-score b {
  padding: 2px 10px;
  border: 1px solid #ffffff40;
  border-radius: 8px;
  font-size: 18px;
  color: #fff;
}
.library-player .lp-actions {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-top: 16px;
}
.library-player .lp-btn {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 64px !important;
  min-height: 44px !important;
  padding: 0;
  color: #edf0f6;
  font-size: 12px;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.library-player .lp-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #23262e;
  transition: transform 0.12s;
}
.library-player .lp-btn.primary .lp-ico {
  background: #53fc18;
  color: #061000;
}
.library-player .lp-btn:active .lp-ico {
  transform: scale(0.92);
}
.library-player .lp-lbl {
  font-size: 12px;
  line-height: 1.2;
}
