/* Visual layer only. The V1.26 DOM, event IDs, canvas sizing, and app.js remain untouched. */
:root {
  --bg: #0b1014;
  --panel: #141e24;
  --panel-2: #1b272e;
  --line: #32434d;
  --text: #f3f7f7;
  --muted: #a7b7bb;
  --mint: #62d8bd;
  --amber: #f4bd5d;
  --coral: #ef6b63;
  --sky: #78b4ff;
}

.v2-skin .app-shell {
  padding-inline: max(calc(14px * var(--ui-scale)), env(safe-area-inset-left));
}

.v2-skin .topbar {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(80, 105, 117, 0.35);
}

.v2-skin h1 {
  font-weight: 760;
  letter-spacing: 0;
}

.v2-skin .eyebrow {
  font-weight: 750;
}

.v2-skin button,
.v2-skin .import-button,
.v2-skin .file-card {
  border-color: #3a4b55;
  background: #1b272e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-weight: 650;
}

.v2-skin button:hover,
.v2-skin .import-button:hover,
.v2-skin .file-card:hover {
  border-color: #5c7581;
}

.v2-skin .audio-panel,
.v2-skin .tab-panel,
.v2-skin .timeline-panel {
  border-color: #354953;
  background: #141e24;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.v2-skin .file-card,
.v2-skin .now-card,
.v2-skin .text-field textarea,
.v2-skin .queue-list li,
.v2-skin .block-list li {
  background: #10191f;
  border-color: #354953;
}

.v2-skin .file-card {
  border-color: #62d8bd;
  background: #143d35;
  cursor: pointer;
}

.v2-skin .file-card strong {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid #62d8bd;
  border-radius: 6px;
  background: #1c5144;
  color: #f3fffb;
}

.v2-skin .speed-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.v2-skin .speed-controls > span {
  color: #a7b7bb;
  font-size: 0.78rem;
  font-weight: 700;
}

.v2-skin .speed-button,
.v2-skin .clear-stamps {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.78rem;
}

.v2-skin .speed-button.active {
  border-color: #f4bd5d;
  background: #5f4314;
  box-shadow: 0 0 12px rgba(244, 189, 93, 0.62);
}

.v2-skin .clear-stamps {
  margin-left: auto;
  border-color: #ef6b63;
  background: #4f2523;
  color: #ffe3df;
}

.v2-skin .status-pill {
  border-color: #40535d;
  background: #10181e;
  color: #b9c9cd;
}

.v2-skin #waveform,
.v2-skin #timelineWaveform,
.v2-skin .desktop-wave,
.v2-skin .timeline-track {
  border-color: #40525c;
  background-color: #080d11;
}

.v2-skin .tabs {
  gap: 10px;
  padding-block: 10px;
}

.v2-skin .tab {
  min-height: calc(42px * var(--ui-scale));
  background: #10191f;
  border-color: #33444e;
}

.v2-skin .tab.active {
  border-color: #77b8ff;
  background: #1c3958;
  box-shadow: inset 0 0 0 1px rgba(120, 180, 255, 0.22);
}

.v2-skin #viewMode.active {
  border-color: #62d8bd;
  background: #173f36;
  box-shadow: 0 0 0 2px rgba(98, 216, 189, 0.5), 0 0 18px rgba(98, 216, 189, 0.42), inset 0 0 0 1px rgba(98, 216, 189, 0.24);
}

.v2-skin #viewMode {
  border-color: #62d8bd;
  background: #173f36;
  color: #e8fffa;
  box-shadow: 0 0 0 1px rgba(98, 216, 189, 0.32), inset 0 0 0 1px rgba(98, 216, 189, 0.16);
}

.v2-skin #viewMode.active {
  background: #1c5a4c;
  box-shadow: 0 0 0 2px rgba(98, 216, 189, 0.72), 0 0 20px rgba(98, 216, 189, 0.55), inset 0 0 0 1px rgba(220, 255, 246, 0.2);
}

.v2-skin .undo-strong {
  border-color: #62d8bd;
  background: #17483d;
}

.v2-skin .redo-strong {
  border-color: #78b4ff;
  background: #1b4167;
}

.v2-skin .primary,
.v2-skin .play-large {
  border-color: #62d8bd;
  background: #1c5144;
}

.v2-skin .danger,
.v2-skin .stamp-button {
  border-color: #ef6b63;
  background: #702925;
}

.v2-skin .secondary-end {
  border-color: #f4bd5d;
  background: #5f4314;
}

.v2-skin .subtabs {
  gap: 8px;
}

.v2-skin .subtab.active,
.v2-skin #queueTab.active {
  border-color: #78b4ff;
  background: #1c3958;
}

.v2-skin #doneTab.active {
  border-color: #f4bd5d;
  background: #5f4314;
}

.v2-skin .queue-list li.active,
.v2-skin .block-list li.active {
  border-color: #f4bd5d;
  box-shadow: inset 3px 0 0 #f4bd5d;
}

.v2-skin .scale-popover,
.v2-skin .export-modal {
  border-color: #78b4ff;
  background: #152128;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
}

.v2-skin .timeline-block {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.v2-skin .site-footer a {
  color: #8ec7ff;
}

.v2-skin .download-notice {
  position: fixed;
  z-index: 1000;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #62d8bd;
  border-radius: 10px;
  background: #143f35;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  color: #f2fff9;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.v2-skin .download-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.v2-skin .download-notice strong,
.v2-skin .download-notice span {
  display: block;
}

.v2-skin .download-notice span {
  margin-top: 3px;
  color: #b5d9cc;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.v2-skin .download-notice-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.v2-skin .download-notice button {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #8ec7ff;
  border-radius: 7px;
  background: #1c3958;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.v2-skin .download-notice .open-downloads {
  border-color: #62d8bd;
  background: #1c5144;
}

@media (min-width: 760px) {
  .v2-skin .app-shell {
    padding-inline: 20px;
  }
}

@media (max-width: 560px) {
  .v2-skin .topbar {
    flex-wrap: wrap;
  }

  .v2-skin .topbar > div:first-child,
  .v2-skin .top-actions {
    width: 100%;
  }

  .v2-skin .top-actions {
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .v2-skin .mini-button {
    min-width: 0;
  }

  .v2-skin .tabs {
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 6px;
  }

  .v2-skin .timeline-tab {
    padding-inline: 8px;
    font-size: 0.94rem;
  }

  .v2-skin .stamp-layout {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  .v2-skin .download-notice {
    align-items: flex-start;
    flex-direction: column;
  }
}
