.lyric-hero-description { max-width: 48rem; }
.lyric-hero-description > span { display: block; }
/* The editor expands after it loads its history. Keep the outer scroll on the user's target. */
.lyric-changer-landing { overflow-anchor: none; }

.lyric-demo .lyric-demo-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.lyric-demo-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid #e8e3df;
  border-radius: 14px;
  background: #fff;
}
.lyric-demo-card h3 {
  margin: 0 0 8px;
  color: #29221f;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.lyric-demo-card p { margin: 0 0 12px; }
.lyric-demo-example { margin: auto 0 0; }
.lyric-demo-example figcaption { margin-bottom: 6px; color: #555; font-size: .8rem; font-weight: 650; }
.lyric-demo-line {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e8e3df;
  border-radius: 9px;
  background: #faf8f6;
  color: #29221f;
}
.lyric-demo-line mark { border-radius: 3px; background: #fce6e5; color: #a52928; }
.lyric-demo-line [data-demo-cue].is-playing {
  border-radius: 3px;
  background: #fff0e6;
  color: #a84311;
  font-weight: 700;
}
.lyric-demo-recording { margin-top: auto; min-width: 0; }
.lyric-demo-recording > strong { display: block; margin-bottom: 6px; color: #555; font-size: .8rem; }
.lyric-demo-recording .vc-result { min-width: 0; padding: 0; border: 0; background: transparent; }
.lyric-demo-recording audio { display: block; width: 100%; }
.lyric-demo-footer { display: flex; justify-content: center; margin-top: 22px; }
.lyric-demo-footer .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  text-decoration: none;
}

.lyric-tool, .lyric-demo { scroll-margin-top: 76px; }
.lyric-tool-walkthrough {
  display: inline-block;
  margin-top: 8px;
  color: var(--purple-dark);
  font-size: .85rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lyric-tool-body { position: relative; }
.lyric-tool-frame { display: block; width: 100%; border: 0; background: #fff; }
.lyric-tool-note {
  margin: 0 12px;
  padding-block: 16px;
  color: var(--muted);
  font-size: .72rem;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}
.lyric-tool-body:has(.lyric-tool-opening:not([hidden])) .lyric-tool-frame {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.lyric-tool-opening {
  padding: 4px clamp(14px, 3vw, 30px) 18px;
}
.lyric-opening-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
}
.lyric-opening-status .vc-preview-spinner {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-color: #e8dfd9;
  border-top-color: #aa745c;
}
.lyric-tool-opening [data-lyric-editor-direct]:not([hidden]) {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 12px;
  color: var(--purple-dark);
  font-size: .8rem;
}
.lyric-opening-reselect {
  margin: 4px clamp(14px, 3vw, 30px) 12px;
  color: var(--muted);
  font-size: .85rem;
}
.lyric-opening-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
  padding: 0 0 15px;
  list-style: none;
  border-bottom: 1px solid var(--border);
}
.lyric-opening-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .75rem;
}
.lyric-opening-steps li span {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: #eee;
  font-size: .68rem;
  font-weight: 700;
}
.lyric-opening-steps li:first-child { color: inherit; font-weight: 650; }
.lyric-opening-steps li:first-child span { background: #d95721; color: #fff; }
.lyric-opening-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.lyric-opening-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.lyric-opening-card + .lyric-opening-card { margin-top: 18px; }
.lyric-opening-card h3 { margin: 0 0 14px; font-size: 1rem; }
.lyric-opening-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 150px;
  padding: 20px 12px;
  border: 1px dashed #d6c8bf;
  border-radius: 10px;
  background: #faf8f6;
  text-align: center;
  font-size: .86rem;
  cursor: pointer;
}
.lyric-opening-dropzone:hover {
  border-color: var(--purple-dark);
  background: #fff7f1;
}
#lyric-opening-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.lyric-opening-dropzone:has(#lyric-opening-file:focus-visible) {
  outline: 2px solid var(--purple-dark);
  outline-offset: 3px;
}
.lyric-opening-dropzone svg { width: 25px; height: 25px; margin-bottom: 6px; color: var(--purple-dark); }
.lyric-opening-dropzone small { color: var(--muted); font-size: .75rem; }
.lyric-opening-upload {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 8px 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .8rem;
}
.lyric-opening-upload strong { display: block; overflow-wrap: anywhere; }
.lyric-opening-upload button {
  border: none;
  padding: 4px 0;
  background: none;
  color: var(--purple-dark);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.lyric-opening-lyrics {
  min-height: 440px;
  margin: 0 0 54px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf8f6;
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.55;
}
.lyric-opening-confirm {
  display: grid;
  place-items: center;
  min-height: 49px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 9px;
  background: #f4d9cd;
  color: #783419;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}
.lyric-opening-edits {
  display: flex;
  flex-direction: column;
  min-height: 370px;
}
.lyric-opening-output-label { margin-bottom: 12px; color: var(--muted); font-size: .68rem; }
.lyric-opening-output-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 14px;
}
.lyric-opening-output-heading h3 { margin: 0; }
.lyric-opening-output {
  display: grid;
  align-content: center;
  justify-items: center;
  flex: 1;
  gap: 12px;
  padding: 24px 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .84rem;
}
.lyric-opening-output svg { color: #eab399; }
.lyric-opening-output p { max-width: 28ch; margin: 0; color: var(--muted); }
.lyric-opening-history { display: flex; align-items: center; min-height: 60px; padding-block: 12px; }
.lyric-opening-history h3 { margin: 0; }
.lyric-changer-landing .splitter-faq-item summary {
  color: #29221f;
  font-size: .96rem;
  font-weight: 700;
  cursor: pointer;
}
.lyric-changer-landing .splitter-faq-item[open] p { margin-top: 5px; }

@media (max-width: 760px) {
  .lyric-demo .lyric-demo-steps { grid-template-columns: minmax(0, 1fr); }
  .lyric-demo-card { padding: 24px; }
  .lyric-demo-footer .primary-action { width: 100%; }
  .lyric-demo-recording .nv-audio-controls.nv-waveform-controls { grid-template-columns: 44px minmax(0, 1fr); }
  .lyric-demo-recording .nv-audio-toggle { width: 44px; height: 44px; }
  .lyric-opening-panels { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lyric-opening-card { padding: 18px; }
  .lyric-opening-lyrics { min-height: 390px; }
  .lyric-opening-edits { min-height: 343px; }
  .lyric-opening-history { min-height: 80px; }
  .lyric-opening-steps li { gap: 5px; font-size: .68rem; }
  .lyric-opening-steps li span { flex-basis: 20px; height: 20px; }
  .lyric-tool, .lyric-demo { scroll-margin-top: 64px; }
}
