.media-trim-track {
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 8px;
  flex: 1;
  min-width: 0;
  height: 46px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.media-trim-thumb {
  object-fit: cover;
  opacity: 0.92;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  background-color: #00000059;
  background-position: 50%;
  background-size: cover;
  flex: 1 0 0;
  min-width: 0;
  height: 100%;
}
.media-trim-playhead-line {
  pointer-events: none;
  background: #fff;
  border-radius: 1px;
  width: 2px;
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translate(-1px);
  box-shadow: 0 0 4px #0009;
}
.media-trim-track-box {
  height: 48px;
}
.media-trim-track-box .media-trim-thumb {
  opacity: 1;
}
.media-trim-trim-frame {
  pointer-events: none;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  position: absolute;
  inset: 0 12px;
}
.media-trim-dim-left,
.media-trim-dim-right {
  pointer-events: none;
  background: #0006;
  position: absolute;
  top: 0;
  bottom: 0;
}
.media-trim-dim-left {
  left: 0;
}
.media-trim-dim-right {
  right: 0;
}
.media-trim-playhead-box {
  pointer-events: none;
  border: 2px solid #fff;
  border-radius: 8px;
  position: absolute;
  top: 0;
  bottom: 0;
}
.media-trim-handle {
  pointer-events: none;
  background: #fff;
  justify-content: center;
  align-items: center;
  width: 12px;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
}
.media-trim-handle-left {
  border-radius: 8px 0 0 8px;
  left: 0;
}
.media-trim-handle-right {
  border-radius: 0 8px 8px 0;
  right: 0;
}
.media-trim-handle:after {
  content: "";
  background: #0006;
  border-radius: 1px;
  width: 2px;
  height: 20px;
}
.motion-workbench-studio {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --character-studio-bg-float-rgb: 36 36 36;
  --character-studio-fg-rgb: 255 255 255;
  --character-studio-bg-float: #242424;
  --character-studio-bg-canvas: #1a1a1a;
  --character-studio-bg-body: #161616;
  --character-studio-bg-overlay: #ffffff0f;
  --character-studio-bg-overlay-hover: #ffffff14;
  --character-studio-bg-overlay-active: #ffffff1a;
  --character-studio-border-l1: #ffffff14;
  --character-studio-border-l2: #ffffff1f;
  --character-studio-border-contrast: #ffffffe6;
  --character-studio-text-default: #fff;
  --character-studio-text-secondary: #fff9;
  --character-studio-text-tertiary: #ffffff4d;
  --character-studio-text-inverse: #000;
  --character-studio-bg-control: #1f1f1fd1;
  --character-studio-bg-control-muted: #303030b8;
  --character-studio-bg-loading: color-mix(
    in srgb,
    var(--character-studio-bg-float) 90%,
    transparent
  );
  --character-studio-checker-base: #303030;
  --character-studio-checker-tile: #3a3a3a;
  --character-studio-icon-filter: invert(1);
  --character-studio-icon-inverse-filter: invert(0);
  --character-studio-menu-shadow: 0 16px 24px -8px #0009, 0 4px 8px -4px #0006;
  --canvas-bg: var(--character-studio-bg-canvas);
  --canvas-bg-dot: var(--character-studio-border-l2);
  --canvas-node-bg: var(--character-studio-bg-overlay);
  --canvas-controls-border: var(--character-studio-border-l1);
  --canvas-controls-text: var(--character-studio-text-default);
  --canvas-controls-hover: var(--character-studio-bg-overlay-active);
  --canvas-controls-active: var(--character-studio-bg-overlay-active);
  --fg-default: var(--character-studio-text-default);
  --fg-muted: var(--character-studio-text-secondary);
  --fg-subtle: var(--character-studio-text-secondary);
  --fg-disabled: var(--character-studio-text-tertiary);
  --btn-primary-bg: var(--character-studio-text-default);
  --btn-primary-bg-hover: #ffffffe5;
  --btn-primary-bg-active: rgb(var(--character-studio-fg-rgb) / 0.9);
  --btn-primary-bg-disabled: var(--character-studio-border-l1);
  --btn-primary-text: var(--character-studio-text-inverse);
  --btn-primary-text-disabled: var(--character-studio-text-tertiary);
  color: var(--character-studio-text-default);
  background: var(--character-studio-bg-float);
}
:is(
  html.light .motion-workbench-theme-aware,
  html.canvas-light .motion-workbench-theme-aware
) {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --character-studio-bg-float-rgb: 255 255 255;
  --character-studio-fg-rgb: 23 23 23;
  --character-studio-bg-float: #fff;
  --character-studio-bg-canvas: #f5f5f5;
  --character-studio-bg-body: #fff;
  --character-studio-bg-overlay: #0000000a;
  --character-studio-bg-overlay-hover: #0000000f;
  --character-studio-bg-overlay-active: #00000014;
  --character-studio-border-l1: #00000014;
  --character-studio-border-l2: #00000024;
  --character-studio-border-contrast: #000000e6;
  --character-studio-text-default: #171717;
  --character-studio-text-secondary: #0009;
  --character-studio-text-tertiary: #0006;
  --character-studio-text-inverse: #fff;
  --btn-primary-bg-hover: #4a4a4a;
  --character-studio-bg-control: #ffffffe6;
  --character-studio-bg-control-muted: #f5f5f5d9;
  --character-studio-bg-loading: color-mix(
    in srgb,
    var(--character-studio-bg-float) 90%,
    transparent
  );
  --character-studio-checker-base: #f0f0f0;
  --character-studio-checker-tile: #e0e0e0;
  --character-studio-icon-filter: invert(0);
  --character-studio-icon-inverse-filter: invert(1);
  --character-studio-menu-shadow:
    0 16px 24px -8px #0000001f, 0 4px 8px -4px #00000014;
}
.motion-workbench-save-assets-power {
  color: var(--character-studio-text-tertiary);
  gap: 1px;
  padding-left: 2px;
}
.motion-workbench-save-assets-power > svg,
.motion-workbench-save-assets-power > span > svg {
  width: 12px;
  height: 12px;
}
.motion-workbench-save-assets-power > span {
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
}
.motion-workbench-confirm-generate-power {
  opacity: 0.4;
  gap: 2px;
  padding-left: 4px;
}
.motion-workbench-confirm-generate-power > svg,
.motion-workbench-confirm-generate-power > span > svg {
  width: 12px;
  height: 12px;
}
.motion-workbench-confirm-generate-power > span {
  min-width: 0;
  font-size: 14px;
  line-height: 22px;
}
button:disabled .motion-workbench-confirm-generate-power {
  opacity: 1;
}
html.light
  .motion-workbench-theme-aware
  .motion-workbench-motion-phase-library
  .motion-workbench-motion-model-host {
  filter: none;
}
html.canvas-light
  .motion-workbench-theme-aware
  .motion-workbench-motion-phase-library
  .motion-workbench-motion-model-host {
  filter: none;
}
html.light
  .motion-workbench-theme-aware
  .motion-workbench-carousel-card[data-carousel-slot="create"][aria-current="true"] {
  filter: none;
}
html.canvas-light
  .motion-workbench-theme-aware
  .motion-workbench-carousel-card[data-carousel-slot="create"][aria-current="true"] {
  filter: none;
}
.motion-workbench-editor-panel-overlay-scroll .min-h-0.overflow-y-auto {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.motion-workbench-editor-panel-overlay-scroll
  .min-h-0.overflow-y-auto::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.motion-workbench-editor-panel-scroll-thumb {
  z-index: 11;
  pointer-events: none;
  cursor: pointer;
  opacity: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  background: 0 0;
  border: 0;
  width: 12px;
  padding: 0;
  transition: opacity 0.18s ease-out;
  position: absolute;
  right: 0;
}
.motion-workbench-editor-panel-scroll-thumb:before {
  content: "";
  background: var(--character-studio-text-tertiary);
  border: 0;
  border-radius: 999px;
  width: 4px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 3px;
}
.motion-workbench-editor-panel-scroll-thumb-visible {
  pointer-events: auto;
  opacity: 1;
  transition: none;
}
.motion-workbench-editor-panel-scroll-thumb-visible:hover:before,
.motion-workbench-editor-panel-scroll-thumb-dragging:before {
  background: var(--character-studio-text-secondary);
}
.motion-workbench-editor-panel-generate-mask {
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgb(var(--character-studio-bg-float-rgb) / 1) 0%,
    rgb(var(--character-studio-bg-float-rgb) / 1) 79.69%,
    rgb(var(--character-studio-bg-float-rgb) / 0.89) 82.54%,
    rgb(var(--character-studio-bg-float-rgb) / 0.73) 85.71%,
    rgb(var(--character-studio-bg-float-rgb) / 0.5) 90.48%,
    rgb(var(--character-studio-bg-float-rgb) / 0.26) 95.24%,
    rgb(var(--character-studio-bg-float-rgb) / 0) 100%
  );
  height: 64px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.motion-workbench-styling-palette-swatch[aria-pressed="true"] {
  box-shadow:
    0 0 0 2px var(--character-studio-bg-float),
    0 0 0 3px var(--character-studio-text-default);
}
.motion-workbench-studio-range-wrap {
  --character-studio-range-thumb-size: 14px;
  width: 100%;
  display: block;
  position: relative;
}
.motion-workbench-studio-range,
.motion-workbench-studio-tone-range {
  appearance: none;
  cursor: pointer;
  background: 0 0;
  width: 100%;
  height: 12px;
  margin: 0;
}
.motion-workbench-studio-range-thumb-dot {
  top: 50%;
  left: calc(
    var(--character-studio-range-ratio, 0) *
      (100% - var(--character-studio-range-thumb-size)) +
      var(--character-studio-range-thumb-size) / 2
  );
  pointer-events: none;
  background: var(--character-studio-bg-body);
  border-radius: 50%;
  width: 2px;
  min-width: 2px;
  height: 2px;
  min-height: 2px;
  display: block;
  position: absolute;
  transform: translate(-50%, -50%);
}
.motion-workbench-makeup-category-scroller {
  scrollbar-width: thin;
  scrollbar-color: var(--character-studio-border-contrast) transparent;
}
.motion-workbench-makeup-category-scroller::-webkit-scrollbar {
  height: 3px;
}
.motion-workbench-makeup-category-scroller::-webkit-scrollbar-track {
  background: 0 0;
}
.motion-workbench-makeup-category-scroller::-webkit-scrollbar-thumb {
  background: var(--character-studio-border-contrast);
  border-radius: 9999px;
}
.motion-workbench-studio-range::-webkit-slider-runnable-track {
  background: var(--character-studio-border-l2);
  border-radius: 9999px;
  height: 2px;
}
.motion-workbench-studio-range-progress::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    var(--character-studio-text-default) 0
      var(--character-studio-range-progress, 0%),
    var(--character-studio-bg-overlay-hover)
      var(--character-studio-range-progress, 0%) 100%
  );
}
.motion-workbench-studio-range::-webkit-slider-thumb {
  appearance: none;
  border: 1px solid var(--character-studio-border-l2);
  background: var(--character-studio-text-default);
  border-radius: 9999px;
  width: 14px;
  height: 14px;
  margin-top: -6px;
  box-shadow: 0 1px 2px #0003;
}
.motion-workbench-studio-tone-range::-webkit-slider-thumb {
  appearance: none;
  border: 1px solid var(--character-studio-border-l2);
  background: var(--character-studio-text-default);
  border-radius: 9999px;
  width: 14px;
  height: 14px;
  margin-top: -6px;
  box-shadow: 0 1px 2px #0003;
}
.motion-workbench-studio-range::-moz-range-track {
  background: var(--character-studio-border-l2);
  border-radius: 9999px;
  height: 2px;
}
.motion-workbench-studio-range-progress::-moz-range-track {
  background: var(--character-studio-bg-overlay-hover);
}
.motion-workbench-studio-range-progress::-moz-range-progress {
  background: var(--character-studio-text-default);
  border-radius: 9999px;
  height: 2px;
}
.motion-workbench-studio-range::-moz-range-thumb {
  border: 1px solid var(--character-studio-border-l2);
  background: var(--character-studio-text-default);
  border-radius: 9999px;
  width: 14px;
  height: 14px;
  box-shadow: 0 1px 2px #0003;
}
.motion-workbench-studio-tone-range::-moz-range-thumb {
  border: 1px solid var(--character-studio-border-l2);
  background: var(--character-studio-text-default);
  border-radius: 9999px;
  width: 14px;
  height: 14px;
  box-shadow: 0 1px 2px #0003;
}
.motion-workbench-studio-tone-range::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #a4ebff 0%, #f1b394 100%);
  border-radius: 9999px;
  height: 2px;
}
.motion-workbench-studio-tone-range::-moz-range-track {
  background: linear-gradient(90deg, #a4ebff 0%, #f1b394 100%);
  border-radius: 9999px;
  height: 2px;
}
.motion-workbench-screen-enter {
  animation: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both
    motion-workbench-character-studio-screen-enter;
}
.motion-workbench-carousel-card {
  z-index: 90;
  opacity: 0.2;
}
.motion-workbench-studio-generation-overlay {
  background: rgb(var(--character-studio-bg-float-rgb) / 0.9);
}
.motion-workbench-slot-label-scanning {
  color: #0000;
  background-image: linear-gradient(
    90deg,
    rgb(var(--character-studio-fg-rgb) / 0.5) 0%,
    rgb(var(--character-studio-fg-rgb) / 0.5) 38%,
    rgb(var(--character-studio-fg-rgb)) 50%,
    rgb(var(--character-studio-fg-rgb) / 0.5) 62%,
    rgb(var(--character-studio-fg-rgb) / 0.5) 100%
  );
  background-repeat: no-repeat;
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: 1.6s ease-in-out infinite
    motion-workbench-character-studio-slot-label-sweep;
}
.motion-workbench-carousel-arrow {
  position: relative;
  overflow: hidden;
}
.motion-workbench-carousel-arrow:before {
  content: "";
  z-index: 0;
  border-radius: inherit;
  background: var(--character-studio-bg-overlay-hover);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.motion-workbench-carousel-arrow:hover:not(:disabled):before {
  opacity: 1;
}
.motion-workbench-carousel-arrow > * {
  z-index: 1;
  position: relative;
}
.motion-workbench-carousel-scrollbar {
  appearance: none;
  cursor: ew-resize;
  background: 0 0;
  width: calc(100% - 40px);
  height: 12px;
  margin: 0;
}
.motion-workbench-carousel-scrollbar::-webkit-slider-runnable-track {
  background: 0 0;
  height: 6px;
}
.motion-workbench-carousel-scrollbar::-webkit-slider-thumb {
  appearance: none;
  background: var(--character-studio-border-l2);
  border-radius: 9999px;
  width: 96px;
  height: 6px;
}
.motion-workbench-carousel-scrollbar::-moz-range-track {
  background: 0 0;
  height: 6px;
}
.motion-workbench-carousel-scrollbar::-moz-range-thumb {
  background: var(--character-studio-border-l2);
  border: 0;
  border-radius: 9999px;
  width: 96px;
  height: 6px;
}
.motion-workbench-creation-menu-enter {
  transform-origin: 50% 100%;
  animation: 0.24s cubic-bezier(0.215, 0.61, 0.355, 1) both
    motion-workbench-character-studio-creation-menu-enter;
}
.motion-workbench-motion-layer {
  z-index: 51;
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.motion-workbench-motion-model-slot {
  transform: translate3d(var(--character-studio-library-slot-x, 0px), 0, 0);
  opacity: var(--character-studio-library-slot-opacity, 1);
  pointer-events: none;
  will-change: transform, opacity;
  position: absolute;
  inset: 0;
}
.motion-workbench-studio[data-character-library-view="grid"]
  .motion-workbench-motion-phase-library,
.motion-workbench-studio[data-character-library-create-slot="hidden"]
  .motion-workbench-motion-phase-library,
.motion-workbench-studio[data-character-library-asset-detail="open"]
  .motion-workbench-motion-phase-library {
  visibility: hidden;
  opacity: 0;
}
.motion-workbench-motion-dot-field {
  background: var(--character-studio-bg-float);
  opacity: 0;
  pointer-events: none;
  width: 1200px;
  height: 602px;
  transition: opacity 0.3s;
  display: block;
  position: absolute;
  top: 70px;
  left: 0;
  overflow: hidden;
}
.motion-workbench-motion-model-host {
  top: var(--character-studio-model-top);
  width: var(--character-studio-model-width);
  height: var(--character-studio-model-height);
  clip-path: inset(calc(var(--character-studio-model-overscan) * -1) round 0);
  transform-origin: 50%;
  will-change: clip-path, transform;
  transition-property: clip-path, transform;
  position: absolute;
  left: 50%;
  overflow: visible;
  transform: translate(-50%) scale(1);
}
.motion-workbench-motion-model-hitbox {
  top: var(--character-studio-model-top);
  width: var(--character-studio-model-width);
  height: var(--character-studio-model-height);
  position: absolute;
  left: 50%;
  transform: translate(-50%);
}
.motion-workbench-motion-model-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}
.motion-workbench-motion-model-stage {
  inset: calc(var(--character-studio-model-overscan) * -1);
  transform: translateY(var(--character-studio-model-offset-y));
  transform-origin: bottom;
  position: absolute;
}
.motion-workbench-motion-model-canvas {
  opacity: 0;
  transition: opacity 0.18s;
}
.motion-workbench-motion-model-canvas-ready {
  opacity: 1;
}
.motion-workbench-motion-phase-library .motion-workbench-motion-model-host {
  clip-path: inset(0 var(--character-studio-library-model-clip-x) round 16px);
  transform: translate3d(
      -50%,
      var(--character-studio-library-model-translate-y),
      0
    )
    scale(var(--character-studio-library-model-scale));
  transition-duration: var(--character-studio-model-exit-duration);
  transition-timing-function: var(--character-studio-model-exit-easing);
}
.motion-workbench-motion-phase-library[data-scanning="true"]
  .motion-workbench-motion-model-host {
  clip-path: inset(calc(var(--character-studio-model-overscan) * -1) round 0);
}
.motion-workbench-motion-phase-library .motion-workbench-motion-model-hitbox {
  top: var(--character-studio-library-model-top, 160px);
  width: var(--character-studio-library-model-width, 246px);
  height: var(--character-studio-library-model-height, 434px);
}
.motion-workbench-motion-phase-pending,
.motion-workbench-motion-phase-loading {
  overflow: visible;
}
.motion-workbench-motion-phase-pending .motion-workbench-motion-dot-field,
.motion-workbench-motion-phase-loading .motion-workbench-motion-dot-field {
  opacity: 1;
}
.motion-workbench-motion-phase-loading .motion-workbench-motion-model-host,
.motion-workbench-motion-phase-result .motion-workbench-motion-model-host {
  transition: none;
}
.motion-workbench-motion-phase-result,
.motion-workbench-motion-phase-edit {
  z-index: 0;
}
.motion-workbench-motion-phase-result .motion-workbench-motion-dot-field,
.motion-workbench-motion-phase-edit .motion-workbench-motion-dot-field {
  opacity: 1;
}
.motion-workbench-motion-phase-result .motion-workbench-motion-model-host {
  animation: 0.52s ease-in-out both motion-workbench-character-studio-model-exit;
}
.motion-workbench-motion-phase-edit .motion-workbench-motion-model-host {
  display: none;
}
.motion-workbench-motion-phase-edit[data-overlay-dots="true"] {
  z-index: 53;
}
.motion-workbench-motion-phase-edit[data-overlay-dots="true"]
  .motion-workbench-motion-dot-field {
  background: 0 0;
}
.motion-workbench-motion-phase-pending .motion-workbench-motion-model-host,
.motion-workbench-motion-phase-loading .motion-workbench-motion-model-host,
.motion-workbench-motion-phase-result .motion-workbench-motion-model-host {
  clip-path: inset(calc(var(--character-studio-model-overscan) * -1) round 0);
}
.motion-workbench-motion-phase-pending .motion-workbench-motion-model-host,
.motion-workbench-preview-zoom-in {
  transition-duration: var(--character-studio-model-enter-duration);
  transition-timing-function: var(--character-studio-model-enter-easing);
}
.motion-workbench-preview-busy {
  filter: blur(16px);
  opacity: 0.2;
  pointer-events: none;
}
.motion-workbench-preview-zoom-out {
  transition-duration: var(--character-studio-model-exit-duration);
  transition-timing-function: var(--character-studio-model-exit-easing);
}
:is(
  .motion-workbench-section-tab-icon path,
  .motion-workbench-section-tab-icon circle
) {
  stroke-opacity: 1;
}
.motion-workbench-preview-mask-fade,
.motion-workbench-preview-mask-blur {
  --character-studio-preview-mask-duration: 0.1s;
  transition-duration: var(--character-studio-preview-mask-duration);
}
.motion-workbench-preview-mask-fade {
  transition-property: opacity;
}
.motion-workbench-preview-mask-blur {
  transition-property: -webkit-backdrop-filter, backdrop-filter;
}
.motion-workbench-preview-mask-fade-in,
.motion-workbench-preview-mask-blur-in {
  transition-delay: 0s;
  transition-timing-function: var(--character-studio-model-enter-easing);
}
.motion-workbench-preview-mask-fade-out,
.motion-workbench-preview-mask-blur-out {
  transition-delay: calc(
    var(--character-studio-model-exit-duration) -
      var(--character-studio-preview-mask-duration)
  );
  transition-timing-function: var(--character-studio-model-exit-easing);
}
.motion-workbench-preview-mask-blur-in {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.motion-workbench-preview-mask-blur-out {
  -webkit-backdrop-filter: blur();
  backdrop-filter: blur();
}
.motion-workbench-workbench-entering [data-character-motion="portrait"] {
  animation: 0.62s cubic-bezier(0.215, 0.61, 0.355, 1) 0.28s both
    motion-workbench-character-studio-portrait-enter;
}
.motion-workbench-workbench-entering [data-character-motion="left-panel"] {
  animation: 0.48s cubic-bezier(0.215, 0.61, 0.355, 1) 0.4s both
    motion-workbench-character-studio-left-panel-enter;
}
.motion-workbench-workbench-entering [data-character-motion="right-panel"] {
  animation: 0.48s cubic-bezier(0.215, 0.61, 0.355, 1) 0.46s both
    motion-workbench-character-studio-right-panel-enter;
}
.motion-workbench-workbench-entering [data-character-motion="footer"] > * {
  animation: 0.32s cubic-bezier(0.215, 0.61, 0.355, 1) 0.48s both
    motion-workbench-character-studio-footer-enter;
}
.motion-workbench-workbench-entering
  [data-character-motion="footer"]
  > :nth-child(2) {
  animation-delay: 0.52s;
}
.motion-workbench-workbench-entering
  [data-character-motion="footer"]
  > :nth-child(3) {
  animation-delay: 0.56s;
}
@keyframes motion-workbench-character-studio-screen-enter {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes motion-workbench-character-studio-creation-menu-enter {
  0% {
    opacity: 0;
    translate: 0 9px;
    scale: 0.97;
  }
  to {
    opacity: 1;
    translate: 0;
    scale: 1;
  }
}
@keyframes motion-workbench-character-studio-model-exit {
  0% {
    opacity: 1;
    scale: 1;
  }
  to {
    opacity: 0;
    scale: 0.985;
  }
}
@keyframes motion-workbench-character-studio-portrait-enter {
  0% {
    opacity: 0;
    translate: 0 7px;
    scale: 0.975;
  }
  to {
    opacity: 1;
    translate: 0;
    scale: 1;
  }
}
@keyframes motion-workbench-character-studio-left-panel-enter {
  0% {
    opacity: 0;
    transform: translate(-18px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes motion-workbench-character-studio-right-panel-enter {
  0% {
    opacity: 0;
    transform: translate(18px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes motion-workbench-character-studio-footer-enter {
  0% {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes motion-workbench-character-studio-slot-label-sweep {
  0% {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-workbench-slot-label-scanning {
    color: inherit;
    background-image: none;
    animation: none;
  }
  .motion-workbench-screen-enter,
  .motion-workbench-creation-menu-enter,
  .motion-workbench-motion-phase-result .motion-workbench-motion-model-host,
  .motion-workbench-workbench-entering [data-character-motion],
  .motion-workbench-workbench-entering [data-character-motion="footer"] > * {
    animation: none;
  }
  .motion-workbench-motion-model-host,
  .motion-workbench-motion-dot-field,
  .motion-workbench-motion-model-canvas {
    transition: none;
  }
  .motion-workbench-motion-phase-result .motion-workbench-motion-model-host {
    opacity: 0;
  }
}
.motion-workbench-generator-screen {
  z-index: 52;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
}
.motion-workbench-generator-screen-hidden {
  visibility: hidden;
}
.motion-workbench-generator-header {
  flex: 0 0 70px;
  align-items: center;
  height: 70px;
  padding: 24px 56px 20px 24px;
  display: flex;
  position: relative;
}
.motion-workbench-generator-back-button {
  z-index: 60;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  display: flex;
  position: absolute;
  top: 24px;
  left: 24px;
}
.motion-workbench-generator-back-button:hover {
  background: var(--canvas-controls-hover);
}
.motion-workbench-generator-content {
  z-index: 52;
  isolation: isolate;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.motion-workbench-generator-status {
  z-index: 60;
  pointer-events: none;
  max-width: 320px;
  position: absolute;
  top: 8px;
  left: 24px;
}
.motion-workbench-generator-status h2 {
  color: var(--character-studio-text-default);
  letter-spacing: -0.02em;
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  line-height: 32px;
}
.motion-workbench-generator-status p {
  min-height: 22px;
  color: var(--character-studio-text-secondary);
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 22px;
}
.motion-workbench-generator-footer {
  border-top: 1px solid var(--character-studio-border-l1);
  flex: 0 0 88px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 88px;
  padding: 24px;
  display: flex;
  position: relative;
  overflow: visible;
}
.motion-workbench-generator-prompt-wrap {
  z-index: 60;
  width: 496px;
  min-height: 48px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%);
}
.motion-workbench-generator-prompt {
  border: 1px solid var(--character-studio-border-l1);
  background: var(--character-studio-bg-overlay);
  border-radius: 9999px;
  grid-template-rows: 36px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 6px;
  display: grid;
  position: relative;
  box-shadow:
    0 16px 24px -8px #0000000f,
    0 4px 8px -4px #0000000a,
    0 1px 1px #00000005;
}
.motion-workbench-generator-prompt-expanded {
  background:
    linear-gradient(
      var(--character-studio-bg-overlay),
      var(--character-studio-bg-overlay)
    ),
    var(--character-studio-bg-float);
  border-radius: 24px;
  grid-template-rows: minmax(0, 1fr) 36px;
  align-items: end;
  row-gap: 14px;
  height: 143px;
  min-height: 143px;
  padding: 5px 6px;
}
.motion-workbench-generator-prompt-autosize.motion-workbench-generator-prompt-expanded {
  grid-template-rows: auto 36px;
  height: auto;
  min-height: 0;
}
.motion-workbench-generator-prompt-expanded
  .motion-workbench-generator-prompt-icon {
  grid-area: 2/1;
}
.motion-workbench-generator-prompt-expanded .motion-workbench-generator-submit {
  grid-area: 2/3;
}
.motion-workbench-generator-prompt-icon {
  grid-area: 1/1;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
  position: relative;
}
.motion-workbench-generator-prompt-icon-button {
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 9999px;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
}
.motion-workbench-generator-prompt-icon-button:hover,
.motion-workbench-generator-prompt-icon-button[aria-expanded="true"] {
  background: var(--character-studio-bg-overlay-active);
}
.motion-workbench-generator-prompt-icon-button > img {
  width: 20px;
  height: 20px;
  filter: var(--character-studio-icon-filter);
}
.motion-workbench-generator-prompt-body {
  grid-area: 1/2;
  min-width: 0;
  min-height: 0;
}
.motion-workbench-generator-prompt-expanded
  .motion-workbench-generator-prompt-body {
  flex-direction: column;
  grid-area: 1/1 / auto/-1;
  align-self: stretch;
  min-height: 0;
  padding: 6px 9px 0;
  display: flex;
}
.motion-workbench-generator-prompt textarea {
  resize: none;
  width: 100%;
  min-height: 36px;
  max-height: 104px;
  color: var(--character-studio-text-default);
  font: inherit;
  scrollbar-width: thin;
  scrollbar-color: var(--character-studio-text-tertiary) transparent;
  background: 0 0;
  border: 0;
  outline: 0;
  padding: 7px 0;
  font-size: 14px;
  line-height: 22px;
  display: block;
  overflow: auto;
}
.motion-workbench-generator-prompt-expanded textarea {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 0;
  line-height: 25px;
}
.motion-workbench-generator-prompt-measure-track {
  grid-area: 1/2;
  height: 0;
  position: relative;
}
.motion-workbench-generator-prompt
  textarea.motion-workbench-generator-prompt-measure {
  box-sizing: content-box;
  visibility: hidden;
  pointer-events: none;
  width: auto;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0;
  line-height: 22px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}
.motion-workbench-generator-prompt textarea::placeholder {
  color: var(--character-studio-text-tertiary);
}
.motion-workbench-generator-reference {
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 24px;
  font-size: 13px;
  line-height: 20px;
  display: flex;
}
.motion-workbench-generator-prompt-expanded
  .motion-workbench-generator-reference {
  flex-shrink: 0;
  height: 25px;
}
.motion-workbench-generator-reference-asset {
  border: 0.5px solid rgb(var(--character-studio-fg-rgb) / 0.16);
  border-radius: 8px;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 240px;
  height: 24px;
  padding: 0 4px;
  display: flex;
}
.motion-workbench-generator-reference-asset img {
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
.motion-workbench-generator-reference-asset span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.motion-workbench-generator-rich-prompt {
  scrollbar-width: thin;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.motion-workbench-generator-prompt-autosize
  .motion-workbench-generator-rich-prompt {
  flex: 0 auto;
  max-height: 125px;
  overflow: hidden auto;
}
.motion-workbench-generator-prompt:not(
    .motion-workbench-generator-prompt-expanded
  )
  .motion-workbench-generator-rich-prompt,
.motion-workbench-generator-prompt:not(
    .motion-workbench-generator-prompt-expanded
  )
  .motion-workbench-generator-rich-prompt-editor {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  overflow: hidden;
}
.motion-workbench-generator-rich-prompt-editor {
  min-height: 36px;
  color: var(--character-studio-text-default);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  -webkit-user-select: text;
  user-select: text;
  outline: 0;
  padding: 7px 0;
  font-size: 14px;
  line-height: 22px;
}
.motion-workbench-generator-prompt-expanded
  .motion-workbench-generator-rich-prompt-editor {
  min-height: 25px;
  padding: 0;
  line-height: 25px;
}
.motion-workbench-generator-rich-prompt-editor p {
  margin: 0;
}
.motion-workbench-generator-rich-prompt-editor > p {
  width: fit-content;
  max-width: 100%;
}
.motion-workbench-generator-rich-prompt-editor p.is-editor-empty:before {
  float: left;
  height: 0;
  color: var(--character-studio-text-tertiary);
  content: attr(data-placeholder);
  pointer-events: none;
}
.motion-workbench-generator-reference-node {
  vertical-align: middle;
  max-width: 100%;
  display: inline-flex;
}
.motion-workbench-generator-inline-reference {
  vertical-align: middle;
  -webkit-user-select: none;
  user-select: none;
  max-width: 240px;
  display: inline-flex;
}
.motion-workbench-generator-submit {
  background: var(--btn-primary-bg);
  height: 36px;
  color: var(--btn-primary-text);
  cursor: pointer;
  border: 0;
  border-radius: 9999px;
  flex: none;
  grid-area: 1/3;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0 10px;
  font-size: 14px;
  line-height: 22px;
  display: flex;
}
.motion-workbench-generator-submit-power {
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 22px;
  display: flex;
}
.motion-workbench-generator-submit:disabled {
  background: var(--btn-primary-bg-disabled);
  color: var(--btn-primary-text-disabled);
  cursor: default;
}
.motion-workbench-generator-submit > img {
  width: 16px;
  height: 16px;
  filter: var(--character-studio-icon-inverse-filter);
}
.motion-workbench-generator-submit:disabled > img {
  filter: var(--character-studio-icon-filter);
}
.motion-workbench-generator-loading-cancel {
  background: var(--character-studio-bg-overlay);
  height: 40px;
  color: var(--character-studio-text-default);
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  font-size: 14px;
  display: flex;
}
.motion-workbench-generator-loading-cancel:before {
  background: var(--character-studio-text-default);
  content: "";
  border-radius: 3px;
  width: 14px;
  height: 14px;
}
.motion-workbench-generator-loading-cancel:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}
.motion-workbench-generator-reference-menu {
  z-index: 70;
  border: 1px solid var(--character-studio-border-l1);
  background: var(--character-studio-bg-float);
  width: 220px;
  box-shadow: var(--character-studio-menu-shadow);
  border-radius: 16px;
  padding: 6px;
  position: absolute;
  bottom: 48px;
  left: 0;
  overflow: hidden;
}
.motion-workbench-generator-reference-menu button {
  width: 100%;
  height: 36px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 22px;
  display: flex;
}
.motion-workbench-generator-reference-menu button:hover {
  background: var(--character-studio-bg-overlay-active);
}
.motion-workbench-generator-reference-menu button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}
.motion-workbench-generator-reference-menu svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.motion-workbench-role-name-fade {
  -webkit-mask-image: linear-gradient(
    90deg,
    #0000 0,
    #000 24px calc(100% - 24px),
    #0000 100%
  );
  mask-image: linear-gradient(
    90deg,
    #0000 0,
    #000 24px calc(100% - 24px),
    #0000 100%
  );
}
.motion-workbench-role-name-dash {
  background-image: repeating-linear-gradient(
    to right,
    rgb(var(--character-studio-fg-rgb) / 0.45) 0 4px,
    transparent 4px 8px
  );
  height: 1px;
}
.selected-indicator-selected-icon path {
  fill-opacity: 1 !important;
}
