/* SENSIK compact generation progress — shared by Custom and Cover. */
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview {
  margin: 8px 0 2px;
  padding: 11px 12px 10px;
  border: 1px solid rgba(78, 221, 204, .20);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(39, 193, 181, .08), transparent 58%),
    linear-gradient(145deg, rgba(12, 27, 36, .92), rgba(7, 15, 25, .94));
  box-shadow: inset 0 1px 0 rgba(234, 255, 250, .025);
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-copy { min-width: 0; }
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-label {
  display: block;
  color: #effbff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-detail {
  margin: 3px 0 0;
  color: #92aab9;
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-count {
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 5px 8px;
  border: 1px solid rgba(87, 227, 211, .20);
  border-radius: 99px;
  background: rgba(51, 201, 186, .07);
  color: #8bf4e5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .035em;
  white-space: nowrap;
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview .mgen-progress-track-main {
  position: relative;
  height: 6px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(137, 171, 194, .15);
  border-radius: 99px;
  background: rgba(2, 8, 15, .72);
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview .mgen-progress-track-main:not(.is-indeterminate) span {
  height: 100%;
  transform: none !important;
  animation: none !important;
  transition: width .35s ease;
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview .mgen-progress-track-main.is-indeterminate span {
  width: 32%;
  height: 100%;
  transform: translateX(-120%);
  animation: mgenDetailedIndeterminate 1.6s ease-in-out infinite !important;
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview .mgen-progress-track-main.is-success span {
  width: 100%;
  transform: none !important;
  animation: none !important;
  background: linear-gradient(90deg, #43e4c5, #6caeff);
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview .mgen-progress-track-main.is-failed span {
  width: 100%;
  transform: none !important;
  animation: none !important;
  background: linear-gradient(90deg, #f18aa8, #dc557d);
}
@keyframes mgenDetailedIndeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(420%); }
}

:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview.is-estimated {
  border-color: rgba(78, 221, 204, .15);
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview .mgen-progress-track-main.is-estimated span {
  height: 100%;
  transform: none !important;
  animation: none !important;
  background: linear-gradient(90deg, #29cbb8, #62e8d6 55%, #73bfff);
  box-shadow: 0 0 12px rgba(75, 226, 205, .16);
  transition: width .45s ease;
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-note {
  margin-top: 5px;
  color: #7895a5;
  font-size: 8px;
  line-height: 1.3;
  text-align: right;
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview.is-failed {
  border-color: rgba(236, 113, 149, .35);
  background: linear-gradient(145deg, rgba(49, 20, 34, .52), rgba(10, 16, 27, .96));
}
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview.is-failed .mgen-progress-label { color: #ffabc0; }
:is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview.is-success { border-color: rgba(74, 225, 203, .32); }
@media (max-width: 560px) {
  :is(#studio-workspace, #musicGenerationProgress) .mgen-progress-top { gap: 7px; }
  :is(#studio-workspace, #musicGenerationProgress) .mgen-progress-label { font-size: 11px; }
  :is(#studio-workspace, #musicGenerationProgress) .mgen-progress-detail { font-size: 9px; }
  :is(#studio-workspace, #musicGenerationProgress) .mgen-progress-count { padding: 4px 6px; font-size: 7px; }
  :is(#studio-workspace, #musicGenerationProgress) .mgen-progress-overview { padding: 9px 9px 8px; }
  :is(#studio-workspace, #musicGenerationProgress) .mgen-progress-note { font-size: 7px; }
}
