.me-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px;
  border: 3px dashed var(--surface-muted);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.me-drop-zone:hover { border-color: var(--primary); background: var(--surface-soft); }
.me-drop-zone.is-dragover { border-color: var(--primary); background: var(--surface-soft); }
.me-drop-zone.is-loaded { border-style: solid; border-color: var(--primary); }
.me-drop-icon { color: var(--text-dim); }
.me-drop-zone.is-loaded .me-drop-icon,
.me-drop-zone.is-loaded .me-drop-sub { display: none; }
.me-drop-text { text-align: center; }
.me-drop-hint {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.me-drop-sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 4px;
}
/* === Lyrics Timestamp Tool === */

/* Compact loaded state: filename bar instead of big dashed box.
   Scoped to .lt-drop-zone so the MP3 tag editor's .me-drop-zone keeps its
   original solid-border box behavior. */
.lt-drop-zone.is-loaded {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-width: 2px;
  border-radius: var(--radius);
}
.lt-drop-zone.is-loaded .me-drop-text { flex: 1 1 auto; text-align: left; }
.lt-drop-zone.is-loaded .me-drop-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-family: var(--font-rounded);
  line-height: 1.2;
  word-break: break-all;
}
.lt-drop-zone.is-loaded .me-drop-hint svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--primary); }
.lt-drop-zone.is-loaded .lt-drop-clear { display: inline-flex; }

/* Delete audio button (only visible when loaded). */
.lt-drop-clear {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--surface-muted);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.lt-drop-clear:hover { border-color: var(--risk-text); color: var(--risk-text); }

.lt-audio {
  width: 100%;
  margin: 8px 0 6px;
  border-radius: var(--radius);
}
.lt-sticky {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  background: var(--surface);
}
.lt-sticky:has(.lt-audio:not(.dl-hidden)) {
  padding: 10px 0;
  margin-bottom: 8px;
  border-bottom: 3px solid var(--surface-muted);
}

.lt-lyrics-box { margin-top: 18px; }
.lt-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.lt-lyrics-text {
  width: 100%;
  min-height: 160px;
  padding: 12px 14px;
  border: 2.5px solid var(--surface-muted);
  border-radius: var(--radius);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}
.lt-lyrics-text:focus { border-color: var(--primary); }
.lt-lyrics-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
/* Inside the lyrics tool, .dl-btn-primary buttons use the same compact
   height as the adjacent secondary buttons so the rows stay aligned. */
.lt-lyrics-actions .dl-btn-primary,
.lt-restore .dl-btn-primary,
.lt-export-btns .dl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--primary-border);
}
.lt-lyrics-actions .dl-btn-primary:active,
.lt-restore .dl-btn-primary:active,
.lt-export-btns .dl-btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--primary-border); }
.lt-import-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 0;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px 16px;
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.12s, color 0.12s;
}
.lt-import-label:hover { border-color: var(--primary); color: var(--primary); }

.lt-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 0;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px 16px;
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.12s, color 0.12s;
}
.lt-strip-btn:hover { border-color: var(--primary); color: var(--primary); }

.lt-workspace { margin-top: 22px; }
.lt-now {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}
.lt-now-label { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; font-size: 12px; }
.lt-now-time { font-variant-numeric: tabular-nums; color: var(--primary); }
.lt-now-next { font-variant-numeric: tabular-nums; color: var(--text); }
.lt-now-sep { color: var(--text-dim); }
.lt-now-next-group { display: inline-flex; align-items: center; gap: 8px; }
.lt-now.is-preview .lt-now-next-group { display: none !important; }
.lt-now.is-preview .lt-time-edit { display: none !important; }
.lt-now.is-preview .lt-stamp-btn,
.lt-now.is-preview .lt-undo-btn { display: none !important; }
.lt-speed { display: inline-flex; align-items: center; gap: 6px; }
.lt-offset { display: inline-flex; align-items: center; gap: 6px; }
.lt-offset-input {
  width: 72px;
  font-family: var(--font-rounded);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius);
  padding: 10px 10px;
  outline: none;
  text-align: center;
}
.lt-offset-input:focus { border-color: var(--primary); }
.lt-speed-select {
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  outline: none;
}
.lt-speed-select:focus { border-color: var(--primary); }

.lt-wave {
  display: block;
  width: 100%;
  height: 72px;
  margin: 6px 0 4px;
  border-radius: var(--radius);
  background: var(--surface-muted);
  cursor: pointer;
}
.lt-now-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lt-now-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.lt-controls2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.lt-stamp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 0;
  appearance: none;
  -webkit-appearance: none;
  color: #fff;
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 10px 22px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 3px 0 var(--primary-border);
}
.lt-stamp-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--primary-border); }
.lt-stamp-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.lt-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 0;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text-secondary);
  background: var(--surface);
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius);
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.lt-mini-btn:hover { border-color: var(--primary); color: var(--primary); }
.lt-mini-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.lt-nudge { padding: 10px 13px; min-width: 38px; }
.lt-time-edit { display: inline-flex; align-items: center; gap: 6px; }
.lt-time-input {
  width: 96px;
  font-family: var(--font-rounded);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius);
  padding: 10px 10px;
  outline: none;
  text-align: center;
}
.lt-time-input:focus { border-color: var(--primary); }
.lt-time-input:disabled { opacity: 0.4; }

.lt-restore {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px 16px;
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  background: var(--surface-muted);
}
.lt-restore-text { font-size: 14px; font-weight: 800; color: var(--text); flex: 1 1 auto; }
.lt-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 14px;
}
.lt-hint kbd {
  font-family: var(--font-rounded);
  background: var(--surface-muted);
  border-radius: 6px;
  padding: 1px 7px;
  font-weight: 800;
  font-size: 12px;
}

.lt-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
  line-height: 1.2;
  min-height: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--surface-muted);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.lt-edit-btn:hover { border-color: var(--primary); color: var(--primary); }

.lt-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
  line-height: 1.2;
  min-height: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--primary);
  background: var(--primary);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--primary-border);
  transition: transform 0.1s, box-shadow 0.1s;
}
.lt-preview-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--primary-border); }
.lt-preview-btn.is-playing { background: var(--surface); color: var(--primary); box-shadow: 0 3px 0 var(--surface-muted); }
.lt-preview-btn + .lt-edit-btn { margin-left: 0; }

.lt-sheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius);
  background: var(--surface);
}
.lt-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.9;
  padding: 4px 6px;
  border-radius: 8px;
}
.lt-line-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 3px;
}
.lt-line-time {
  min-width: 84px;
  border: 2px solid var(--surface-muted);
  background: var(--surface-soft);
  border-radius: 7px;
  padding: 3px 6px;
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  cursor: pointer;
  transition: border-color 0.12s;
}
.lt-line-time:hover { border-color: var(--primary); }
.lt-line-time.is-empty { color: var(--text-dim); }
.lt-line-stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 2px solid var(--risk-text);
  background: var(--surface);
  color: var(--risk-text);
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 9px;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.12s, color 0.12s;
}
.lt-line-stamp:hover { background: var(--risk-text); color: #fff; }
.lt-line-stamp:hover .lt-rec-dot { background: #fff; }
.lt-rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--risk-text);
  flex: 0 0 auto;
}
.lt-line-toks {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.lt-line-end {
  align-self: center;
  margin-left: 6px;
  border: 2px dashed var(--surface-muted);
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, color 0.12s;
}
.lt-line-end:hover { border-color: var(--primary); color: var(--primary); }
.lt-line-end.is-empty { opacity: 0.7; }
.lt-line-end.is-ignored { opacity: 0.5; text-decoration: line-through; }
.lt-tok {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s, color 0.1s, box-shadow 0.1s;
  border: 2px solid transparent;
}
.lt-tok:hover { background: var(--surface-muted); }
.lt-tok.is-stamped { color: var(--primary); }
.lt-tok.is-sung { color: var(--text-secondary); }
.lt-tok.is-current { background: var(--safe-bg); color: var(--primary); }
.lt-tok.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-border);
}
.lt-tok.is-ooo {
  border-color: var(--risk-text);
  box-shadow: 0 0 0 2px rgba(229,72,77,0.35);
  color: var(--risk-text);
}

/* Karaoke preview mode */
.lt-sheet.is-preview {
  gap: 16px;
  padding: 32px 16px;
  max-height: 360px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.lt-sheet.is-preview .lt-line {
  justify-content: center;
  text-align: center;
  opacity: 0.3;
  transform: scale(0.94);
  transition: opacity 0.25s, transform 0.25s;
}
.lt-sheet.is-preview .lt-line-side,
.lt-sheet.is-preview .lt-line-end { display: none; }
.lt-sheet.is-preview .lt-line-toks { flex: 0 1 auto; justify-content: center; }
.lt-sheet.is-preview .lt-line.is-cur-line { opacity: 1; transform: scale(1); }
.lt-sheet.is-preview .lt-tok {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dim);
  cursor: default;
  border-color: transparent;
  box-shadow: none;
  background: none;
}
.lt-sheet.is-preview .lt-tok.is-sung { color: var(--primary); }
.lt-sheet.is-preview .lt-tok.is-current {
  color: #fff;
  background: var(--primary);
}

/* Hide non-preview-relevant elements when previewing. */
.lt-workspace.is-preview .lt-offset,
.lt-workspace.is-preview .lt-hint { display: none !important; }

.lt-export {
  margin-top: 22px;
}
.lt-progress {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 10px;
}
.lt-export.is-incomplete .lt-progress { color: var(--text-secondary); }
.lt-export-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lt-export .dl-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

/* Download dropdown (LRC / SRT / VTT) */
.lt-download-wrap { position: relative; display: inline-flex; }
.lt-dd-caret { font-size: 0.7em; margin-left: 4px; opacity: 0.8; }
.lt-download-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--surface-muted);
  box-shadow: var(--shadow-card);
}
.lt-download-menu[hidden] { display: none; }
.lt-dd-item {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  min-height: 0;
  line-height: 1.2;
}
.lt-dd-item:hover { border-color: var(--primary); color: var(--primary); }
.lt-dd-item:disabled { opacity: 0.4; cursor: not-allowed; }
.lt-dd-hint { font-size: 12px; font-weight: 700; color: var(--text-dim); }

@media (max-width: 600px) {
  .lt-sheet { padding: 12px; }
  .lt-tok { font-size: 15px; }
  .lt-line { flex-wrap: wrap; }
  .lt-line-time { min-width: 74px; }
  .lt-export .dl-btn-primary { flex: 1 1 100%; text-align: center; }
  .lt-download-wrap { flex: 1 1 100%; width: 100%; }
  .lt-download-wrap .dl-btn-primary { flex: 1 1 100%; width: 100%; text-align: center; }
  .lt-download-menu { right: 0; left: auto; min-width: 150px; width: auto; }

  /* Tidy the stamping toolbar into clear rows on small screens. */
  .lt-now { gap: 6px; margin-bottom: 4px; }
  .lt-now-info { font-size: 13px; gap: 6px; }

  /* Pinned bar: only per-stamp essentials (Stamp / Undo / Word time). */
  .lt-now-controls { gap: 8px; margin-top: 10px; }
  .lt-now-controls > * { margin: 0; min-width: 0; }
  .lt-stamp-btn { flex: 2 1 calc(66% - 6px); min-width: 0; padding: 11px; font-size: 15px; }
  .lt-undo-btn { flex: 1 1 calc(34% - 6px); min-width: 0; text-align: center; padding: 11px 8px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Defensive: preview state must hide these even in mobile constraints. */
  .lt-now.is-preview .lt-stamp-btn,
  .lt-now.is-preview .lt-undo-btn,
  .lt-now.is-preview .lt-time-edit { display: none !important; }
  .lt-time-edit { flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; gap: 6px; min-width: 0; }
  .lt-time-edit .lt-now-label { flex: 0 0 auto; }
  .lt-time-edit .lt-time-input { flex: 0 1 auto; width: auto; min-width: 0; max-width: 100px; padding: 11px 8px; font-size: 13px; }
  .lt-time-edit .lt-nudge { flex: 0 0 auto; padding: 11px 12px; }

  /* Secondary controls (scroll with page): Speed / Offset / Preview / Edit. */
  .lt-controls2 { gap: 8px; margin-bottom: 12px; }
  .lt-controls2 > * { margin: 0; min-width: 0; }
  .lt-speed { flex: 1 1 100%; justify-content: space-between; }
  .lt-speed .lt-speed-select { flex: 1 1 auto; min-width: 0; padding: 11px 12px; }
  .lt-offset { flex: 1 1 100%; justify-content: space-between; gap: 6px; min-width: 0; }
  .lt-offset .lt-offset-input { flex: 1 1 auto; width: auto; min-width: 0; padding: 11px 8px; }
  .lt-offset .lt-offset-unit { flex: 0 0 auto; }
  .lt-offset .lt-offset-apply,
  .lt-offset #lt-offset-apply { flex: 0 0 auto; padding: 11px 12px; }
  .lt-preview-btn { flex: 1 1 calc(50% - 4px); padding: 11px; font-size: 15px; text-align: center; }
  .lt-edit-btn { flex: 1 1 calc(50% - 4px); padding: 11px; font-size: 15px; text-align: center; }

  .lt-restore .dl-btn-primary,
  .lt-restore .lt-mini-btn { flex: 1 1 auto; text-align: center; }
}


/* UseSuno theme integration. Keep the original timing workspace responsive. */
.stamp-page {
  --primary: var(--accent); --primary-border: var(--accent-soft);
  --surface: var(--bg-elevated); --surface-muted: var(--card-border);
  --surface-soft: var(--input-bg); --text: var(--text-main);
  --text-secondary: var(--text-muted); --risk-text: var(--danger-text);
  --safe-bg: var(--accent-soft); --font-rounded: 'Outfit', sans-serif;
  --radius: 10px; --radius-lg: 16px; --nav-h: 76px;
  --shadow-card: var(--soft-shadow);
}
.stamp-page .tool-shell { max-width: 1040px; margin-inline: auto; }
.stamp-page .tool-stage h1 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.045em; text-wrap: balance; }
.stamp-page .tool-stage .sub { max-width: 640px; margin-inline: auto; }
.stamp-steps { display: flex; gap: 24px; padding: 0 4px 18px; color: var(--text-muted); font-size: .85rem; }
.stamp-steps b { color: var(--accent); margin-right: 8px; font-family: var(--mono); font-weight: 400; }
.stamp-page .stamp-editor { padding: clamp(16px, 3vw, 30px); overflow: visible; background: var(--bg-elevated); border: 1px solid var(--card-border); border-radius: 20px; }
.stamp-page .me-drop-zone { border-width: 1px; background: var(--input-bg); padding: 28px 20px; }
.stamp-page .me-drop-zone.is-loaded { padding: 12px 16px; }
.stamp-page .me-drop-icon { color: var(--accent); }
.stamp-page .lt-lyrics-text { min-height: 220px; background: var(--input-bg); font-weight: 400; font-size: 16px; line-height: 1.7; border-width: 1px; }
.stamp-page .lt-sheet { border-width: 1px; background: var(--input-bg); }
.stamp-page button, .stamp-page .lt-import-label { font-family: inherit; font-weight: 600; border-width: 1px; box-shadow: none; min-height: 40px; }
.stamp-page .dl-btn-primary { border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--bg-dark); padding: 10px 20px; cursor: pointer; }
.stamp-page .lt-stamp-btn, .stamp-page .lt-preview-btn, .stamp-page .lt-sheet.is-preview .lt-tok.is-current { color: var(--bg-dark); }
.stamp-page .lt-preview-btn.is-playing { color: var(--accent); }
.stamp-page button:hover:not(:disabled) { filter: brightness(.94); }
.stamp-page button:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.stamp-page :is(button,a,input,textarea,select,[tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.stamp-page .lt-sticky { z-index: 5; }
.stamp-page .lt-label, .stamp-page .lt-now-label { text-transform: none; letter-spacing: 0; font-weight: 600; }
.stamp-page .lt-now-time, .stamp-page .lt-time-input, .stamp-page .lt-line-time { font-family: var(--mono); }
.stamp-page .lt-tok { overflow-wrap: anywhere; }
.stamp-page .lt-line-toks { min-width: 0; }
.stamp-page .lt-download-menu { z-index: 6; }
.stamp-page .dl-hidden { display: none !important; }
.stamp-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.stamp-skip { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--bg-elevated); padding: 12px; }
.stamp-skip:focus { top: 12px; }
@media(max-width:600px) {
  .stamp-steps { gap: 10px; font-size: .73rem; justify-content: space-between; }
  .stamp-steps b { display: block; margin-bottom: 4px; }
  .stamp-help-grid { grid-template-columns: 1fr; gap: 0; }
  .stamp-page .lt-line-toks { flex-basis: 100%; }
  .stamp-page .lt-now-controls { width: 100%; }
  .stamp-page .lt-lyrics-actions > * { flex: 1 1 auto; justify-content: center; }
}
@media(prefers-reduced-motion:reduce) {
  .stamp-page *, .stamp-page *::before { scroll-behavior: auto !important; transition: none !important; }
}

.stamp-format-wrap { overflow-x: auto; margin: 20px 0; }
.stamp-format-table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.stamp-format-table th, .stamp-format-table td { padding: 14px 12px; border-bottom: 1px solid var(--card-border); vertical-align: top; }
.stamp-format-table thead { background: var(--input-bg); color: var(--heading); }
.stamp-format-table tbody th { color: var(--accent); white-space: nowrap; }
.stamp-page .tool-help ol { padding-left: 24px; }
.stamp-page .tool-help li { margin-bottom: 12px; }

.lt-suno-form { margin-bottom: 24px; }
.lt-suno-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lt-suno-row input { flex: 1 1 260px; min-width: 0; padding: 12px 14px; border: 1px solid var(--card-border); border-radius: 10px; background: var(--input-bg); color: var(--text-main); font: inherit; }
.lt-suno-form p, .lt-replace, .lt-local-label { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.lt-replace { display: flex; align-items: baseline; gap: 8px; }
#lt-suno-cancel[hidden] { display: none; }

.stamp-page .lt-start-btn { min-height: 48px; padding: 12px 22px; font-size: 1rem; }
.lt-countdown { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: var(--bg-elevated); color: var(--text-main); }
.lt-countdown::backdrop { background: var(--bg-dark); }
.lt-countdown[open] { display: grid; place-items: center; }
.lt-countdown-content { text-align: center; max-width: 600px; }
.lt-countdown-number { font: 800 clamp(7rem, 24vw, 15rem)/1.15 'Outfit', sans-serif; color: var(--accent); font-variant-numeric: tabular-nums; margin: 20px 0; }
#lt-countdown-title { font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 600; }
#lt-countdown-help { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
@media(max-width:600px) { .stamp-page .lt-start-btn { flex: 1 1 100%; } }

#lt-countdown-help kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--card-border); border-radius: 5px; background: var(--input-bg); color: var(--text-main); font: inherit; font-size: .9em; }
