.amw-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #f7f1e8;
  background:
    radial-gradient(circle at 50% 36%, rgba(244, 196, 92, 0.16), transparent 28%),
    rgba(10, 12, 15, 0.92);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.amw-boot-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.amw-boot-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(320px, calc(100vw - 40px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(17, 22, 29, 0.9);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.amw-boot-card p {
  margin: 4px 0 0;
  color: #fff7e8;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.amw-boot-card small {
  color: #b8c1c7;
  font-size: 12px;
  line-height: 1.4;
}

.amw-boot-ring {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #f4c45c;
  border-radius: 50%;
  animation: amw-boot-spin 940ms linear infinite;
}

@keyframes amw-boot-spin {
  to {
    transform: rotate(360deg);
  }
}

.amw-launcher {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2147482000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  min-width: 98px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  color: #f7f1e8;
  background: rgba(18, 20, 24, 0.86);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  font: 700 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.amw-launcher::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #8fd8c8;
  box-shadow: 0 0 0 3px rgba(143, 216, 200, 0.14);
}

.amw-launcher:hover,
.amw-launcher[aria-expanded="true"] {
  border-color: rgba(244, 196, 92, 0.72);
  color: #ffe2a2;
}

.amw-launcher[data-amw-save-state="saved"] {
  border-color: rgba(143, 216, 200, 0.58);
  color: #dffcf5;
}

.amw-launcher[data-amw-save-state="syncing"] {
  border-color: rgba(244, 196, 92, 0.78);
  color: #ffe2a2;
}

.amw-launcher[data-amw-save-state="syncing"]::before {
  background: #f4c45c;
  box-shadow: 0 0 0 3px rgba(244, 196, 92, 0.16);
  animation: amw-launcher-pulse 900ms ease-in-out infinite;
}

.amw-launcher[data-amw-save-state="unsaved"] {
  border-color: rgba(239, 112, 88, 0.78);
  color: #ffd8cf;
}

.amw-launcher[data-amw-save-state="unsaved"]::before {
  background: #ef7058;
  box-shadow: 0 0 0 3px rgba(239, 112, 88, 0.15);
}

@keyframes amw-launcher-pulse {
  0%,
  100% {
    opacity: 0.54;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.amw-shell {
  position: fixed;
  inset: 0;
  z-index: 2147481900;
  pointer-events: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.amw-shell.is-open {
  pointer-events: auto;
}

.amw-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 160ms ease;
}

.amw-shell.is-open .amw-scrim {
  opacity: 1;
}

.amw-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, calc(100vw - 18px));
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  color: #f4efe7;
  background: #11161d;
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.42);
  transform: translateX(102%);
  transition: transform 180ms ease;
}

.amw-shell.is-open .amw-panel {
  transform: translateX(0);
}

@media (min-width: 1180px) and (min-height: 680px) {
  :root {
    --amw-docked-width: min(420px, 32vw);
  }

  body.amw-songwriter-open {
    padding-right: var(--amw-docked-width);
    transition: padding-right 180ms ease;
  }

  body.amw-songwriter-open .amw-launcher {
    right: calc(var(--amw-docked-width) + 14px);
  }

  body.amw-songwriter-open .amw-shell {
    pointer-events: none;
  }

  body.amw-songwriter-open .amw-shell.is-open .amw-scrim {
    opacity: 0;
    pointer-events: none;
  }

  body.amw-songwriter-open .amw-shell.is-open .amw-panel {
    width: var(--amw-docked-width);
    pointer-events: auto;
  }
}

.amw-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.amw-header > div:first-child {
  min-width: 0;
}

.amw-header-actions,
.amw-shared-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.amw-header-actions {
  flex: 0 0 auto;
}

body > .amw-shared-controls {
  display: none;
}

.amw-profile-trigger {
  width: 40px;
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.amw-profile-trigger:hover,
.amw-profile-trigger:focus-visible {
  border-color: rgba(244, 196, 92, 0.62);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.amw-profile-trigger svg {
  width: 22px;
  height: 22px;
}

.amw-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body > .sam-menu {
  z-index: 2147482700 !important;
}

body > .spw-backdrop {
  z-index: 2147482698 !important;
}

body > .spw-modal {
  z-index: 2147482699 !important;
}

.amw-header h2,
.amw-header p {
  margin: 0;
}

.amw-header h2 {
  font-size: 18px;
  line-height: 1.2;
}

.amw-header p {
  margin-top: 4px;
  color: #a9b2bd;
  font-size: 13px;
}

.amw-icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f4efe7;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.amw-icon-button:hover {
  border-color: rgba(244, 196, 92, 0.55);
}

.amw-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.amw-tab {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #c9d2dc;
  background: rgba(255, 255, 255, 0.045);
  font-weight: 700;
  cursor: pointer;
}

.amw-tab.is-active {
  color: #11161d;
  border-color: #f4c45c;
  background: #f4c45c;
}

.amw-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.amw-section {
  display: none;
  gap: 14px;
}

.amw-section.is-active {
  display: grid;
}

.amw-field {
  display: grid;
  gap: 7px;
  color: #a9b2bd;
  font-size: 12px;
  font-weight: 700;
}

.amw-field input,
.amw-field select,
.amw-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 11px;
  color: #f4efe7;
  background: #0b0f14;
  font: 500 14px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.amw-field textarea {
  resize: vertical;
}

.amw-notes {
  min-height: min(58vh, 520px);
}

.amw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.amw-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #c9d2dc;
  font-size: 13px;
}

.amw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amw-primary,
.amw-secondary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.amw-primary {
  border: 1px solid #f4c45c;
  color: #11161d;
  background: #f4c45c;
}

.amw-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f4efe7;
  background: rgba(255, 255, 255, 0.06);
}

.amw-primary:disabled,
.amw-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.amw-compact {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.amw-status {
  margin: 0;
  min-height: 18px;
  color: #a9b2bd;
  font-size: 13px;
}

.amw-generated-collection {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.amw-generated-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.amw-generated-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 11px;
  color: #f4efe7;
  background: #0b0f14;
  font: 500 14px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.amw-generated-results {
  display: grid;
  gap: 8px;
}

.amw-generated-row {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 9px;
  background: rgba(0, 0, 0, 0.14);
}

.amw-generated-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.amw-generated-main strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f7f1e8;
  font-size: 13px;
  line-height: 1.2;
}

.amw-generated-main small,
.amw-generated-main p {
  margin: 0;
  color: #a9b2bd;
  font-size: 12px;
  line-height: 1.32;
}

.amw-generated-main p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.amw-generated-row audio {
  width: 100%;
  min-width: 0;
  height: 34px;
}

.amw-settings-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.amw-settings-card {
  min-width: 0;
  min-height: 98px;
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.amw-settings-card span {
  color: #84909c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.amw-settings-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f7f1e8;
  font-size: 15px;
  line-height: 1.18;
}

.amw-settings-card small {
  color: #a9b2bd;
  font-size: 12px;
  line-height: 1.32;
}

.amw-settings-card.is-good {
  border-color: rgba(89, 213, 157, 0.28);
  background: rgba(89, 213, 157, 0.075);
}

.amw-settings-card.is-warn {
  border-color: rgba(244, 196, 92, 0.32);
  background: rgba(244, 196, 92, 0.08);
}

.amw-settings-card.is-busy {
  border-color: rgba(129, 179, 255, 0.32);
  background: rgba(129, 179, 255, 0.08);
}

.amw-recovery {
  display: none;
}

.amw-recovery.is-active {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(244, 196, 92, 0.28);
  border-radius: 8px;
  padding: 10px;
  background: rgba(244, 196, 92, 0.08);
}

.amw-recovery-text {
  color: #f7f1e8;
  font-size: 13px;
  line-height: 1.35;
}

.amw-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amw-jobs {
  display: grid;
  gap: 10px;
}

.amw-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f7f1e8;
  font-size: 13px;
}

.amw-section-head span {
  color: #a9b2bd;
  font-size: 12px;
}

.amw-tracks {
  display: grid;
  gap: 10px;
}

.amw-project-list {
  display: grid;
  gap: 10px;
}

.amw-job,
.amw-project-row,
.amw-track,
.amw-version-row {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.amw-project-row,
.amw-track {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.amw-project-row {
  position: relative;
  padding-right: 48px;
  min-height: 72px;
  overflow: hidden;
}

.amw-project-row.is-renaming {
  min-height: 150px;
}

.amw-project-row.is-active {
  border-color: rgba(244, 196, 92, 0.44);
  background: rgba(244, 196, 92, 0.08);
}

.amw-project-options {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #f4efe7;
  background: rgba(10, 15, 20, 0.76);
  cursor: pointer;
}

.amw-project-options:hover {
  border-color: rgba(244, 196, 92, 0.58);
}

.amw-project-options svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.amw-project-rename {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 12px;
  background: rgba(12, 16, 21, 0.96);
  backdrop-filter: blur(10px);
}

.amw-project-rename-status {
  color: #a9b2bd;
  font-size: 12px;
}

.amw-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(26, 43, 50, 0.72), rgba(17, 22, 29, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px);
}

.amw-record-card.is-recording {
  border-color: rgba(239, 83, 80, 0.92);
  color: #15191f;
  background: #ffffff;
}

.amw-record-face {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
}

.amw-record-face strong {
  color: #f7f1e8;
  font-size: 32px;
  line-height: 1;
}

.amw-record-face small {
  grid-column: 2;
  color: #a9b2bd;
  font-size: 12px;
  font-weight: 800;
}

.amw-record-dot {
  grid-row: span 2;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #7f8a95;
  box-shadow: 0 0 0 6px rgba(127, 138, 149, 0.12);
}

.amw-record-card.is-recording .amw-record-dot {
  background: #ef5350;
  box-shadow: 0 0 0 7px rgba(239, 83, 80, 0.18);
  animation: amw-record-pulse 920ms ease-in-out infinite;
}

.amw-record-card.is-recording .amw-record-face strong {
  color: #15191f;
}

.amw-record-card.is-recording .amw-record-face small {
  color: #69727d;
}

.amw-record-bars {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
}

.amw-record-bars span {
  width: 5px;
  height: 18px;
  border-radius: 4px;
  background: #7dbfb1;
  opacity: 0.42;
  transform-origin: center bottom;
}

.amw-record-card.is-recording .amw-record-bars span {
  opacity: 0.9;
  animation: amw-record-bars 840ms ease-in-out infinite;
}

.amw-record-card.is-recording .amw-record-bars span:nth-child(2) {
  animation-delay: 90ms;
}

.amw-record-card.is-recording .amw-record-bars span:nth-child(3) {
  animation-delay: 180ms;
}

.amw-record-card.is-recording .amw-record-bars span:nth-child(4) {
  animation-delay: 60ms;
}

.amw-record-card.is-recording .amw-record-bars span:nth-child(5) {
  animation-delay: 140ms;
}

.amw-record-button {
  grid-column: 1 / -1;
  border-color: #e53935;
  color: #ffffff;
  background: #e53935;
}

.amw-record-button:hover {
  border-color: #ff6a63;
  background: #f0443d;
}

.amw-record-button:disabled {
  border-color: rgba(229, 57, 53, 0.48);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(229, 57, 53, 0.58);
}

.amw-record-card.is-recording .amw-record-button {
  border-color: #e53935;
  color: #c62828;
  background: #ffffff;
}

.amw-record-manual-actions {
  display: none;
}

.amw-record-preview {
  min-height: 0;
  display: grid;
  gap: 10px;
}

.amw-record-preview audio {
  width: 100%;
  display: block;
}

.amw-current-recording,
.amw-record-take {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.amw-current-recording {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.amw-current-recording.is-empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.025);
}

.amw-current-recording span,
.amw-record-take strong {
  display: block;
  margin-bottom: 4px;
  color: #8fd8c8;
  font-size: 11px;
  font-weight: 800;
}

.amw-current-recording strong {
  display: block;
  color: #f7f1e8;
  font-size: 13px;
}

.amw-current-recording small {
  display: block;
  margin-top: 3px;
  color: #a9b2bd;
  line-height: 1.35;
}

.amw-job strong,
.amw-project-row strong,
.amw-track strong,
.amw-version-row strong {
  color: #f7f1e8;
  font-size: 13px;
}

.amw-job small,
.amw-project-row small,
.amw-track small,
.amw-version-row small {
  display: block;
  margin-top: 3px;
  color: #a9b2bd;
}

.amw-song-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.amw-version-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482050;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 8, 0.72);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.amw-version-overlay.is-active {
  display: grid;
}

.amw-version-dialog {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(245, 207, 134, 0.22);
  border-radius: 8px;
  color: #f4efe7;
  background: #11161d;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
  overflow: hidden;
}

.amw-version-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.amw-version-header h2,
.amw-version-header p {
  margin: 0;
}

.amw-version-header h2 {
  font-size: 18px;
}

.amw-version-header p {
  margin-top: 4px;
  color: #a9b2bd;
  font-size: 13px;
}

.amw-version-list {
  min-height: 0;
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 14px;
}

.amw-version-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.amw-version-main {
  display: grid;
  gap: 6px;
}

.amw-version-main input[type="range"] {
  width: 100%;
  accent-color: #f4c45c;
}

.amw-version-time {
  display: flex;
  justify-content: space-between;
  color: #87929e;
  font-size: 11px;
  font-weight: 800;
}

.amw-version-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.amw-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482100;
  display: none;
  place-items: center;
  padding: 24px;
  color: #f7f1e8;
  background:
    linear-gradient(145deg, rgba(2, 6, 12, 0.94), rgba(17, 18, 20, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 48px);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.amw-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 122, 120, 0.16), transparent 28%, rgba(198, 138, 34, 0.15) 74%, transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 10px);
  opacity: 0.72;
  pointer-events: none;
}

.amw-overlay::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(36, 122, 120, 0.18), transparent, rgba(178, 75, 86, 0.12), transparent);
  opacity: 0.62;
  transform: rotate(0deg);
  animation: amw-progress-field 14s linear infinite;
  pointer-events: none;
}

.amw-overlay.is-active {
  display: grid;
}

.amw-progress-card {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(245, 207, 134, 0.26);
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(20, 27, 31, 0.97), rgba(18, 18, 18, 0.98) 58%, rgba(23, 28, 33, 0.97)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 24px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.amw-progress-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: inherit;
  pointer-events: none;
}

.amw-progress-visual {
  position: relative;
  min-height: 176px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(6, 12, 20, 0.96), rgba(10, 16, 22, 0.72)),
    repeating-linear-gradient(90deg, rgba(139, 224, 198, 0.1) 0 2px, transparent 2px 18px);
}

.amw-progress-ring {
  position: absolute;
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 207, 134, 0.22);
  border-radius: 50%;
}

.amw-progress-ring::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid transparent;
  border-top-color: #f5cf86;
  border-right-color: rgba(139, 224, 198, 0.66);
  border-radius: inherit;
  animation: amw-progress-ring 1.15s linear infinite;
}

.amw-progress-ring::after {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(139, 224, 198, 0.18);
  border-radius: inherit;
}

.amw-progress-eq {
  position: relative;
  z-index: 1;
  height: 96px;
  display: grid;
  grid-template-columns: repeat(8, 12px);
  align-items: end;
  gap: 8px;
}

.amw-progress-eq span {
  display: block;
  width: 12px;
  height: 100%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #f5cf86 0%, #8be0c6 50%, #b24b56 100%);
  box-shadow: 0 0 20px rgba(139, 224, 198, 0.24);
  transform: scaleY(0.32);
  transform-origin: bottom;
  animation: amw-progress-eq 960ms ease-in-out infinite;
}

.amw-progress-eq span:nth-child(2) {
  animation-delay: -120ms;
}

.amw-progress-eq span:nth-child(3) {
  animation-delay: -260ms;
}

.amw-progress-eq span:nth-child(4) {
  animation-delay: -380ms;
}

.amw-progress-eq span:nth-child(5) {
  animation-delay: -520ms;
}

.amw-progress-eq span:nth-child(6) {
  animation-delay: -640ms;
}

.amw-progress-eq span:nth-child(7) {
  animation-delay: -760ms;
}

.amw-progress-eq span:nth-child(8) {
  animation-delay: -880ms;
}

.amw-progress-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateY(-100%);
  animation: amw-progress-scan 2s linear infinite;
  pointer-events: none;
}

.amw-progress-kicker,
.amw-progress-card h2,
.amw-progress-card p {
  margin: 0;
}

.amw-progress-kicker {
  color: #8be0c6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.amw-overlay.is-extension .amw-progress-kicker {
  color: #f5cf86;
}

.amw-progress-card h2 {
  color: #fff7e6;
  font-size: 42px;
  line-height: 1;
}

.amw-progress-card p {
  color: #c9d4d1;
  font-size: 15px;
}

.amw-progress-bar {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 207, 134, 0.2);
  border-radius: 6px;
  background: rgba(3, 7, 12, 0.72);
}

.amw-progress-bar span {
  position: relative;
  display: block;
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f5cf86, #8be0c6 56%, #e16b78);
  transition: width 260ms ease;
  overflow: hidden;
}

.amw-progress-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.54), transparent);
  transform: translateX(-100%);
  animation: amw-progress-sweep 1.05s ease-in-out infinite;
}

.amw-overlay:not(.is-indeterminate) .amw-progress-bar span::after {
  display: none;
}

.amw-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #9aa2a9;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.amw-progress-cancel {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(225, 107, 120, 0.46);
  border-radius: 8px;
  background: rgba(143, 36, 49, 0.18);
  color: #ffd9dd;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;
}

.amw-progress-cancel:hover:not(:disabled) {
  border-color: rgba(255, 125, 136, 0.78);
  background: rgba(143, 36, 49, 0.32);
  color: #fff2f4;
}

.amw-progress-cancel:disabled {
  cursor: wait;
  opacity: 0.58;
}

.amw-progress-cancel svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes amw-progress-field {
  to {
    transform: rotate(360deg);
  }
}

@keyframes amw-progress-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes amw-progress-eq {
  0%,
  100% {
    transform: scaleY(0.3);
  }

  45% {
    transform: scaleY(0.95);
  }
}

@keyframes amw-progress-scan {
  to {
    transform: translateY(100%);
  }
}

@keyframes amw-progress-sweep {
  to {
    transform: translateX(100%);
  }
}

@keyframes amw-record-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.14);
  }
}

@keyframes amw-record-bars {
  0%,
  100% {
    transform: scaleY(0.42);
  }

  45% {
    transform: scaleY(1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .amw-boot-ring,
  .amw-launcher[data-amw-save-state="syncing"]::before,
  .amw-overlay::after,
  .amw-progress-ring::before,
  .amw-progress-eq span,
  .amw-progress-scan,
  .amw-progress-bar span::after,
  .amw-record-card.is-recording .amw-record-dot,
  .amw-record-card.is-recording .amw-record-bars span {
    animation: none;
  }
}

@media (max-width: 640px) {
  .amw-launcher {
    top: 10px;
    right: 10px;
  }

  body.amw-songwriter-open .amw-launcher {
    visibility: hidden;
    pointer-events: none;
  }

  .amw-panel {
    width: 100vw;
  }

  .amw-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .amw-header-actions {
    width: 100%;
  }

  .amw-header-actions .amwfs-open-sidebar {
    flex: 1;
  }

  .amw-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .amw-grid {
    grid-template-columns: 1fr;
  }

  .amw-generated-search {
    grid-template-columns: 1fr;
  }

  .amw-project-row,
  .amw-record-card,
  .amw-current-recording,
  .amw-track,
  .amw-song-row,
  .amw-version-row {
    grid-template-columns: 1fr;
  }

  .amw-project-row {
    padding-right: 46px;
  }

  .amw-record-card {
    align-items: stretch;
  }

  .amw-record-bars {
    justify-content: center;
  }

  .amw-track .amw-actions,
  .amw-current-recording .amw-actions,
  .amw-version-actions {
    justify-content: stretch;
  }

  .amw-project-row > .amw-primary,
  .amw-project-row > .amw-secondary,
  .amw-track .amw-actions > *,
  .amw-current-recording .amw-actions > *,
  .amw-version-actions > *,
  .amw-song-row .amw-secondary {
    width: 100%;
  }

  .amw-overlay {
    padding: 14px;
  }

  .amw-progress-card {
    padding: 18px;
  }

  .amw-progress-visual {
    min-height: 138px;
  }

  .amw-progress-card h2 {
    font-size: 32px;
  }

  .amw-progress-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .amw-progress-cancel {
    width: 100%;
  }
}
