







.lyrics-editor-page {
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}






.lyrics-editor-body {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
.lyrics-editor-leftcol {
  flex: 1 1 auto;
  min-width: 0; 
}
.lyrics-editor-rightcol {
  flex: 0 0 600px;
  width: 600px;
  position: sticky;
  top: 16px;
  align-self: flex-start;
}


.lyrics-song-player {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface-1, #1c1c22);
  border: 1px solid var(--surface-3, #36363e);
  border-radius: 0.6rem;
  padding: 0.85rem 0.9rem 1rem;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.lyrics-sp-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--text, #e7e7ef);
  word-break: break-word;
}
.lyrics-sp-album {
  width: 100%;
  aspect-ratio: 1 / 1;
  




  max-height: clamp(180px, calc(100cqh - 700px), 360px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2, #2a2a32);
  border-radius: 0.4rem;
  overflow: hidden;
}
.lyrics-sp-album img {
  width: 100%;
  height: 100%;
  
  object-fit: contain;
  display: block;
}
.lyrics-sp-album-missing {
  font-size: 0.85rem;
  color: var(--text-soft, #9d9da6);
}
.lyrics-sp-wave-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.lyrics-sp-wave {
  position: relative;
  width: 100%;
  


  min-height: 240px;
  background: var(--surface-2, #2a2a32);
  border-radius: 0.35rem;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
}
.lyrics-sp-wave-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 26, 0.78);
  color: var(--text-soft, #d0d0d8);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  z-index: 10;
  pointer-events: none;
  text-align: center;
  padding: 0 0.75rem;
}
.lyrics-sp-wave-overlay.is-visible {
  display: flex;
}
.lyrics-sp-zoom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-soft, #9d9da6);
}
.lyrics-sp-zoom-input {
  flex: 1 1 auto;
}
.lyrics-sp-zoom-label {
  min-width: 6.5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lyrics-sp-wave-hint {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-soft, #9d9da6);
  line-height: 1.3;
}
.lyrics-sp-wave-hint b {
  color: var(--text, #e7e7ef);
  font-weight: 600;
}




.lyrics-transport-stacked {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--surface-3, #36363e);
}
.lyrics-transport-stacked .lyrics-tp-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lyrics-transport-stacked .lyrics-tp-row-seek {
  
  width: 100%;
}
.lyrics-transport-stacked .lyrics-tp-row-seek .lyrics-tp-seek {
  flex: 1 1 auto;
  width: 100%;
}
.lyrics-transport-stacked .lyrics-tp-row-play {
  justify-content: flex-start;
}
.lyrics-transport-stacked .lyrics-tp-toggle {
  font-size: 1.4rem;
  padding: 0.25rem 0.75rem;
  min-width: 3rem;
  cursor: pointer;
}
.lyrics-transport-stacked .lyrics-tp-clock,
.lyrics-transport-stacked .lyrics-tp-duration {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.lyrics-transport-stacked .lyrics-tp-status {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-soft, #9d9da6);
}

.lyrics-editor-narrow-banner {
  display: none;
  background: var(--surface-2, #2a2a32);
  color: var(--text-soft);
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.lyrics-editor-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.lyrics-editor-back {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
}

.lyrics-editor-title {
  margin: 0;
  flex: 1 1 auto;
  font-size: 1.4rem;
}

.lyrics-editor-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lyrics-editor-dirty {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.lyrics-editor-dirty.is-dirty {
  color: var(--accent, #e6a800);
  font-weight: 600;
}

.lyrics-editor-save {
  padding: 0.4rem 1.1rem;
  font-weight: 600;
  border-radius: 0.4rem;
  cursor: pointer;
}








.lyrics-editor-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}




.lyrics-editor-grid {
  display: contents;
}




.lyrics-editor-toprow {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: stretch;
}

.lyrics-editor-toprow > .lyrics-chibi-bar,
.lyrics-editor-toprow > .lyrics-editor-right {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .lyrics-editor-toprow {
    flex-direction: column;
  }
}


.lyrics-chibi-bar {
  background: var(--surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
}

.lyrics-chibi-bar-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.lyrics-chibi-bar-title {
  font-weight: 700;
  font-size: 0.85rem;
}

.lyrics-chibi-bar-hint {
  font-size: 0.74rem;
  color: var(--text-soft);
  flex: 1 1 auto;
}

.lyrics-chibi-bar-clear {
  font-size: 0.74rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.3rem;
  cursor: pointer;
}





.lyrics-chibi-bar-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}




.lyrics-chibi-bar-sep {
  flex: 0 0 1px;
  align-self: stretch;
  margin: 0 0.25rem;
  background: var(--border, rgba(255, 255, 255, 0.12));
}




.lyrics-chibi-pill.is-unit {
  background: transparent;
  border-radius: 0.35rem;
}
.lyrics-chibi-img.is-unit {
  object-fit: contain;
  border-radius: 0;
  padding: 0.15rem;
}




.lyrics-chibi-pill {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 90ms ease, box-shadow 90ms ease;
  opacity: 0.55;
}

.lyrics-chibi-pill:hover {
  opacity: 1;
}

.lyrics-chibi-pill.is-on {
  opacity: 1;
  border-color: var(--singer-color, #888);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--singer-color, #888) 35%, transparent);
}




.lyrics-chibi-pill-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 90ms ease;
  pointer-events: none;
}

.lyrics-chibi-pill:hover .lyrics-chibi-pill-inner {
  transform: translateY(-2px);
}

.lyrics-chibi-img {
  height: 3rem;
  object-fit: cover;
  pointer-events: none;
}


.lyrics-col-toggles {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.78rem;
  margin: 0.4rem 0;
  flex-wrap: wrap;
}

.lyrics-col-toggles-label {
  color: var(--text-soft);
  font-weight: 600;
}

.lyrics-col-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  user-select: none;
}

.lyrics-col-toggle.is-undefined {
  opacity: 0.35;
  cursor: not-allowed;
}

.lyrics-col-toggle-input {
  margin: 0;
  cursor: inherit;
}

.lyrics-editor-pane {
  background: var(--surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 0.5rem;
  padding: 0.85rem;
  min-width: 0;
}


.lyrics-editor-mode-toggle {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.lyrics-mode-btn,
.lyrics-blank-open {
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.lyrics-mode-btn.is-active {
  background: var(--accent, #e6a800);
  color: #1a1a1a;
  font-weight: 600;
}

.lyrics-editor-wikitext {
  width: 100%;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.4;
  box-sizing: border-box;
  resize: vertical;
}

.lyrics-editor-wikitext[readonly] {
  opacity: 0.78;
}

.lyrics-editor-warnings {
  margin: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--accent, #e6a800);
}

.lyrics-editor-warnings ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.lyrics-editor-warnings-none {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0.4rem 0;
}

.lyrics-editor-tab-picker {
  display: block;
  font-size: 0.82rem;
  margin: 0.5rem 0;
}






.lyrics-editor-linelist {
  max-height: 60vh;
  overflow-y: auto;
}

.lyrics-line,
.lyrics-timing-row {
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  padding: 0.5rem 0;
  cursor: pointer;
}

.lyrics-line.is-selected,
.lyrics-timing-row.is-selected {
  background: var(--surface-2, rgba(255, 255, 255, 0.05));
}











.lyrics-timing-singers-wrap {
  grid-column: 2 / -1;
  margin-top: 0.4rem;
  padding: 0.5rem 0 0.4rem 0;
  border-top: 1px dashed var(--border, rgba(255, 255, 255, 0.08));
  cursor: default;
  min-width: 0;
}

.lyrics-timing-singers {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.5rem 0.2rem;
  table-layout: fixed;
}

.lyrics-seg-colg-jp { width: 26%; }
.lyrics-seg-colg-ro { width: 22%; }
.lyrics-seg-colg-en { width: 22%; }
.lyrics-seg-colg-all { width: 30%; }




.lyrics-timing-singers[data-vis-jp="false"] .lyrics-seg-colg-jp { width: 0; }
.lyrics-timing-singers[data-vis-ro="false"] .lyrics-seg-colg-ro { width: 0; }
.lyrics-timing-singers[data-vis-en="false"] .lyrics-seg-colg-en { width: 0; }
.lyrics-timing-singers[data-vis-jp="false"] .lyrics-seg-th[data-col="japanese"],
.lyrics-timing-singers[data-vis-jp="false"] .lyrics-seg-td[data-col="japanese"] { display: none; }
.lyrics-timing-singers[data-vis-ro="false"] .lyrics-seg-th[data-col="romaji"],
.lyrics-timing-singers[data-vis-ro="false"] .lyrics-seg-td[data-col="romaji"] { display: none; }
.lyrics-timing-singers[data-vis-en="false"] .lyrics-seg-th[data-col="english"],
.lyrics-timing-singers[data-vis-en="false"] .lyrics-seg-td[data-col="english"] { display: none; }


.lyrics-seg-th {
  text-align: left;
  vertical-align: bottom;
  font-weight: normal;
  padding: 0 0 0.2rem 0;
  font-size: 0.75rem;
  white-space: nowrap;
}

.lyrics-seg-th[data-col="all"] .lyrics-seg-col-label {
  color: var(--accent, #6cf);
}

.lyrics-seg-col-label {
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.4rem;
}

.lyrics-seg-col-hint {
  font-size: 0.7rem;
  color: var(--text-soft);
  opacity: 0.7;
}



.lyrics-seg-td {
  vertical-align: top;
  padding: 0.3rem 0.4rem;
  background: var(--surface-1, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  border-radius: 0.35rem;
  font-size: 0.78rem;
  min-width: 0;
}

.lyrics-seg-td.is-all {
  background: rgba(108, 198, 255, 0.04);
  border-color: rgba(108, 198, 255, 0.18);
}

.lyrics-seg-td.is-placeholder,
.lyrics-seg-td.is-missing {
  background: transparent;
  border-color: transparent;
  text-align: center;
  color: var(--text-soft);
  opacity: 0.35;
}

.lyrics-seg-td.is-empty {
  opacity: 0.85;
}

.lyrics-seg-dash {
  font-size: 0.85rem;
}

.lyrics-seg-empty-row,
.lyrics-seg-warn-row {
  padding: 0.5rem 0.4rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  font-style: italic;
  background: transparent;
  border: none;
}

.lyrics-seg-warn-row {
  color: var(--accent, #e6a800);
}

.lyrics-seg-snippet {
  display: block;
  color: var(--text-soft);
  font-size: 0.72rem;
  margin-bottom: 0.25rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.lyrics-seg-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.lyrics-seg-pill-hint {
  color: var(--text-soft);
  font-style: italic;
  font-size: 0.72rem;
}

.lyrics-seg-empty {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-style: italic;
}





.lyrics-seg-end-override {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.lyrics-seg-end-override-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
  opacity: 0.7;
}

.lyrics-seg-end-input {
  width: 6.5em;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  padding: 0.1rem 0.3rem;
  background: var(--surface-1, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.18));
  border-radius: 3px;
  color: inherit;
}

.lyrics-seg-end-input::placeholder {
  font-style: italic;
  opacity: 0.5;
}

.lyrics-seg-end-cap {
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  background: var(--surface-1, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.18));
  border-radius: 3px;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.lyrics-seg-end-cap:hover {
  background: var(--surface-2, rgba(255, 255, 255, 0.08));
}






.lyrics-preview-offset {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.lyrics-preview-offset-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
  opacity: 0.7;
  cursor: help;
}

.lyrics-preview-offset-input {
  width: 7em;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  padding: 0.15rem 0.35rem;
  background: var(--surface-1, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.18));
  border-radius: 3px;
  color: inherit;
}

.lyrics-preview-offset-input::placeholder {
  font-style: italic;
  opacity: 0.5;
}

.lyrics-preview-offset-cap {
  font-size: 0.8rem;
  padding: 0.15rem 0.4rem;
  background: var(--surface-1, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.18));
  border-radius: 3px;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.lyrics-preview-offset-cap:hover {
  background: var(--surface-2, rgba(255, 255, 255, 0.08));
}



.lyrics-seg-pills .lyrics-chip:not(.is-on) {
  opacity: 0.5;
  background: transparent;
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.25));
}

.lyrics-seg-pills .lyrics-chip:not(.is-on):hover {
  opacity: 0.9;
}



.lyrics-timing-row.is-dimmed {
  opacity: 0.35;
}

.lyrics-timing-row.is-dimmed:hover {
  opacity: 0.65;
}




.lyrics-timing-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.5rem 0.75rem;
  align-items: start;
}

.lyrics-timing-textcols {
  display: grid;
  gap: 0.15rem 0.6rem;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(0, 1fr)
    minmax(0, 1fr);
  align-items: baseline;
  font-size: 0.85rem;
  line-height: 1.35;
  min-width: 0;
}

.lyrics-timing-textcols[data-vis-jp="false"] { grid-template-columns: 0 minmax(0, 1fr) minmax(0, 1fr); }
.lyrics-timing-textcols[data-vis-ro="false"] { grid-template-columns: minmax(0, 1.2fr) 0 minmax(0, 1fr); }
.lyrics-timing-textcols[data-vis-en="false"] { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 0; }
.lyrics-timing-textcols[data-vis-jp="false"][data-vis-ro="false"] { grid-template-columns: 0 0 minmax(0, 1fr); }
.lyrics-timing-textcols[data-vis-jp="false"][data-vis-en="false"] { grid-template-columns: 0 minmax(0, 1fr) 0; }
.lyrics-timing-textcols[data-vis-ro="false"][data-vis-en="false"] { grid-template-columns: minmax(0, 1fr) 0 0; }

.lyrics-timing-col {
  min-width: 0;
  word-break: break-word;
}




.lyrics-timing-textcol-edit {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.1rem 0.3rem;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  line-height: 1.35;
  resize: none;
  overflow: hidden;
  field-sizing: content;
}
.lyrics-timing-textcol-edit:hover {
  border-color: var(--border, rgba(255, 255, 255, 0.12));
}
.lyrics-timing-textcol-edit:focus {
  outline: 2px solid var(--accent, #6cf);
  outline-offset: 1px;
  background: var(--surface-1, rgba(255, 255, 255, 0.03));
  border-color: transparent;
}

.lyrics-timing-col-japanese {
  font-weight: 500;
}

.lyrics-timing-col-romaji {
  color: var(--text-soft);
  font-style: italic;
  font-size: 0.8rem;
}

.lyrics-timing-col-english {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.lyrics-line-head,
.lyrics-timing-head {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.lyrics-line-col {
  font-size: 0.85rem;
}

.lyrics-line-col-name {
  color: var(--text-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lyrics-line-singers,
.lyrics-seg-chips {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.lyrics-line-singers-label,
.lyrics-seg-label {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.lyrics-seg-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.2rem 0 0.2rem 0.6rem;
}


.lyrics-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  background: color-mix(in oklch, var(--singer-color) 18%, transparent);
  border: 1px solid var(--singer-color);
  color: inherit;
}

.lyrics-chip-swatch {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--singer-color);
  display: inline-block;
}

.lyrics-add-input {
  width: 6.5rem;
  font-size: 0.76rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
}


.lyrics-transport {
  position: sticky;
  top: 0.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--surface-2, rgba(0, 0, 0, 0.35));
  padding: 0.4rem 0.5rem;
  border-radius: 0.4rem;
}

.lyrics-tp-clock,
.lyrics-tp-duration {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  min-width: 10ch;
  display: inline-block;
  text-align: center;
}

.lyrics-tp-sep {
  opacity: 0.5;
}

.lyrics-tp-status {
  font-size: 0.78rem;
  color: var(--text-soft);
  min-width: 8ch;
}

.lyrics-tp-status[data-status="loading"] {
  color: var(--accent, #e6a800);
}

.lyrics-tp-status[data-status="playing"] {
  color: var(--ok, #4caf50);
}

.lyrics-tp-seek {
  flex: 1 1 12rem;
  min-width: 8rem;
  cursor: pointer;
}

.lyrics-tp-nudges,
.lyrics-tp-speed {
  display: inline-flex;
  gap: 0.2rem;
}

.lyrics-transport button {
  padding: 0.15rem 0.4rem;
  font-size: 0.76rem;
  cursor: pointer;
  border-radius: 0.3rem;
}

.lyrics-tp-speed .is-active {
  background: var(--accent, #e6a800);
  color: #1a1a1a;
}

.lyrics-editor-vocal {
  display: block;
  font-size: 0.82rem;
  margin: 0.5rem 0;
}

.lyrics-editor-import {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.lyrics-editor-import button {
  padding: 0.25rem 0.6rem;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 0.35rem;
}

.lyrics-editor-timinglist {
  max-height: 62vh;
  overflow-y: auto;
}

.lyrics-timing-fields {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.lyrics-timing-field {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
}

.lyrics-timing-input {
  



  width: 10.5ch;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.1rem 0.2rem;
}

.lyrics-timing-field button,
.lyrics-timing-line-controls button {
  font-size: 0.74rem;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
  border-radius: 0.3rem;
}








.lyrics-timing-edge-btn {
  font-size: 0.78rem;
  padding: 0.1rem 0.35rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  cursor: pointer;
  border-radius: 0.3rem;
  min-width: 2.6rem;
  text-align: center;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.lyrics-timing-edge-btn:hover {
  color: var(--text);
  background: color-mix(in oklab, var(--accent, #e6a800) 12%, transparent);
  border-color: color-mix(in oklab, var(--accent, #e6a800) 35%, transparent);
  text-decoration: underline;
}

.lyrics-timing-edge-btn:focus-visible {
  outline: 2px solid var(--accent, #e6a800);
  outline-offset: 1px;
}





.lyrics-row-split-group {
  display: inline-flex;
  align-items: stretch;
  gap: 0.2rem;
  margin-left: 0.15rem;
}

.lyrics-row-split-input {
  font-size: 0.74rem;
  width: 3.2rem;
  padding: 0.08rem 0.3rem;
  border-radius: 0.3rem;
  border: 1px solid color-mix(in oklab, var(--text, #1e1e1e) 22%, transparent);
  background: var(--bg-1, transparent);
  color: var(--text);
  text-align: right;
  font-family: ui-monospace, monospace;
}

.lyrics-row-split-input:focus-visible {
  outline: 2px solid var(--accent, #e6a800);
  outline-offset: 1px;
}

.lyrics-row-split {
  font-size: 0.74rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  cursor: pointer;
  background: transparent;
  border: 1px dashed color-mix(in oklab, var(--text, #1e1e1e) 25%, transparent);
  color: var(--text-soft);
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.lyrics-row-split-group:hover .lyrics-row-split,
.lyrics-row-split:hover,
.lyrics-row-split:focus-visible {
  color: var(--text);
  background: color-mix(in oklab, var(--accent, #e6a800) 10%, transparent);
  border-color: color-mix(in oklab, var(--accent, #e6a800) 45%, transparent);
  border-style: solid;
}








.lyrics-seg-tr[data-split-side="a"] > td {
  background: rgba(230, 200, 0, 0.45) !important;
}
.lyrics-seg-tr[data-split-side="b"] > td {
  background: rgba(220, 50, 50, 0.45) !important;
  border-top: 3px solid rgba(220, 50, 50, 0.95);
}




.lyrics-bump {
  font-family: ui-monospace, monospace;
  min-width: 2.6rem;
  padding: 0.1rem 0.25rem !important;
  opacity: 0.85;
}

.lyrics-bump:hover {
  opacity: 1;
}

.lyrics-timing-text {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}


.lyrics-editor-right-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.lyrics-slot-hint {
  margin: 0 0 0.65rem;
  font-size: 0.74rem;
  color: var(--text-soft);
  opacity: 0.85;
}

.lyrics-slot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  gap: 0.5rem;
}

.lyrics-slot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.25));
  border-radius: 0.4rem;
  padding: 0.4rem;
  background: var(--surface-1, rgba(255, 255, 255, 0.02));
  min-width: 0;
}

.lyrics-slot.is-filled {
  border-style: solid;
  border-color: var(--border, rgba(255, 255, 255, 0.18));
}

.lyrics-slot.is-empty {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 7rem;
}

.lyrics-slot-add {
  width: 100%;
  padding: 0.6rem 0.5rem;
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.3));
  border-radius: 0.35rem;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 90ms ease, border-color 90ms ease;
}

.lyrics-slot-add:hover {
  background: var(--surface-2, rgba(255, 255, 255, 0.05));
  border-color: var(--accent, #6cf);
}

.lyrics-slot-thumb {
  width: 100%;
  height: 100%;
  display: block;
  







  object-fit: cover;
}

.lyrics-slot-thumb.is-missing {
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
}






.lyrics-slot-thumb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 0.3rem;
  background: var(--surface-2, rgba(0, 0, 0, 0.2));
}

.lyrics-slot-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.72rem;
  min-width: 0;
}





.lyrics-slot-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyrics-slot-actions {
  display: flex;
  



  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
}

.lyrics-slot-recrop,
.lyrics-slot-clear {
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  background: var(--surface-2, rgba(255, 255, 255, 0.05));
  color: inherit;
  cursor: pointer;
  font-size: inherit;
}

.lyrics-slot-recrop:hover,
.lyrics-slot-clear:hover {
  border-color: var(--accent, #6cf);
}





.lyrics-slot-override-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.25rem;
  min-width: 0;
}
.lyrics-slot-override-cap {
  font-size: 0.6rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lyrics-slot-override {
  width: 100%;
  font-size: 0.7rem;
  padding: 0.15rem 0.3rem;
  border-radius: 0.3rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  background: var(--surface-2, rgba(255, 255, 255, 0.05));
  color: inherit;
  cursor: pointer;
}
.lyrics-slot-override:hover,
.lyrics-slot-override:focus {
  border-color: var(--accent, #6cf);
  outline: none;
}

.lyrics-slot-clear {
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.1rem 0.4rem;
}








.lyrics-editor-right-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.lyrics-editor-right-head .lyrics-editor-right-title {
  margin: 0;
}
.lyrics-slot-autofill {
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.2));
  background: var(--surface-2, rgba(255, 255, 255, 0.05));
  color: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
}
.lyrics-slot-autofill:not(:disabled):hover {
  border-color: var(--accent, #6cf);
}
.lyrics-slot-autofill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.lyrics-slot-swap {
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  background: var(--surface-2, rgba(255, 255, 255, 0.05));
  color: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}
.lyrics-slot-swap:not(:disabled):hover {
  border-color: var(--accent, #6cf);
}
.lyrics-slot-swap:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}


.lyrics-editor-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(1rem);
  background: var(--surface-2, #2a2a32);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}

.lyrics-editor-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lyrics-editor-toast[data-kind="warn"] {
  border-color: var(--accent, #e6a800);
}


.lyrics-blank-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lyrics-blank-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.lyrics-blank-card {
  position: relative;
  background: var(--surface, #1f1f27);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 0.5rem;
  padding: 1.25rem;
  max-width: 900px;
  width: 92%;
}

.lyrics-blank-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.lyrics-blank-col {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  gap: 0.25rem;
}

.lyrics-blank-col textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  box-sizing: border-box;
  resize: vertical;
}

.lyrics-blank-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.lyrics-blank-actions button {
  padding: 0.35rem 1rem;
  border-radius: 0.35rem;
  cursor: pointer;
}


@media (max-width: 900px) {
  .lyrics-editor-grid {
    grid-template-columns: 1fr;
  }
  .lyrics-editor-narrow-banner {
    display: block;
  }
  .lyrics-blank-cols {
    grid-template-columns: 1fr;
  }
}
