.motion-capture-view {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  overflow: hidden;
  background: #080b11;
  color: #eef4ff;
  user-select: text;
}

.motion-capture-view button,
.motion-capture-view select {
  font: inherit;
}

.motion-capture-head {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(300px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(145, 170, 205, 0.14);
  background: #0a0f17;
}

.motion-capture-head__title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.motion-capture-head__title > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.motion-capture-head__title span {
  overflow: hidden;
  color: #6f89ac;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.motion-capture-head__title strong {
  overflow: hidden;
  color: #edf4ff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.motion-icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(139, 169, 211, 0.22);
  border-radius: 7px;
  background: #101722;
  color: #bbcae0;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.motion-icon-button:hover {
  border-color: rgba(85, 179, 255, 0.58);
  background: #132238;
  color: #ffffff;
}

.motion-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.motion-stepper li {
  position: relative;
  display: flex;
  min-width: 118px;
  align-items: center;
  gap: 8px;
  color: #60708a;
  font-size: 11px;
  white-space: nowrap;
}

.motion-stepper li:not(:last-child)::after {
  content: "";
  width: 30px;
  height: 1px;
  margin: 0 12px;
  background: rgba(135, 158, 193, 0.2);
}

.motion-stepper i {
  display: grid;
  width: 23px;
  height: 23px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(126, 151, 188, 0.22);
  border-radius: 50%;
  background: #0d141e;
  color: #718099;
  font-size: 10px;
  font-style: normal;
}

.motion-stepper li.is-active {
  color: #d8ecff;
}

.motion-stepper li.is-active i {
  border-color: rgba(55, 201, 255, 0.72);
  background: rgba(34, 135, 211, 0.18);
  color: #62d2ff;
  box-shadow: 0 0 18px rgba(55, 177, 255, 0.2);
}

.motion-capture-head__status {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
  color: #95a9c3;
  font-size: 11px;
  white-space: nowrap;
}

.motion-capture-head__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50d9b0;
  box-shadow: 0 0 10px rgba(80, 217, 176, 0.58);
}

.motion-capture-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: 276px minmax(0, 1fr);
}

.motion-control-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 25px 20px 20px;
  border-right: 1px solid rgba(145, 170, 205, 0.12);
  background: #0b1018;
}

.motion-panel-heading {
  display: grid;
  gap: 4px;
  padding: 0 2px 19px;
}

.motion-panel-heading span,
.motion-workspace-head > div > span {
  color: #6682a7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.motion-panel-heading strong {
  color: #eef4ff;
  font-size: 19px;
  font-weight: 650;
}

.motion-file-summary {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(119, 151, 194, 0.18);
  border-radius: 7px;
  background: #0f1621;
}

.motion-file-summary__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: rgba(49, 142, 224, 0.13);
  color: #58caff;
  font-size: 11px;
}

.motion-file-summary > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.motion-file-summary strong,
.motion-file-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.motion-file-summary strong {
  color: #dce7f8;
  font-size: 11px;
  font-weight: 620;
}

.motion-file-summary > div span {
  color: #64758e;
  font-size: 9px;
}

.motion-file-summary button {
  border: 0;
  background: transparent;
  color: #61bfff;
  font-size: 10px;
  cursor: pointer;
}

.motion-setting-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid rgba(145, 170, 205, 0.1);
}

.motion-setting-row {
  display: grid;
  min-height: 54px;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(145, 170, 205, 0.1);
  color: #778ba7;
  font-size: 10px;
}

.motion-setting-row select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dce8f8;
  font-size: 11px;
  text-align: right;
  cursor: pointer;
}

.motion-setting-row select option {
  background: #111925;
  color: #dce8f8;
}

.motion-setting-row.is-static strong {
  justify-self: end;
  color: #dce8f8;
  font-size: 11px;
  font-weight: 600;
}

.motion-task-cost {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 10px;
  margin-top: auto;
  padding: 17px 2px 15px;
}

.motion-task-cost span {
  color: #7286a1;
  font-size: 10px;
}

.motion-task-cost strong {
  color: #f0f6ff;
  font-size: 15px;
  font-weight: 650;
}

.motion-task-cost small {
  grid-column: 1 / -1;
  color: #4f6077;
  font-size: 9px;
}

.motion-generate-button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(68, 176, 255, 0.62);
  border-radius: 7px;
  background: linear-gradient(100deg, #2477e8, #5958ee);
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(22, 77, 173, 0.22);
}

.motion-generate-button:disabled {
  border-color: rgba(117, 139, 172, 0.14);
  background: #121925;
  color: #4f5f76;
  box-shadow: none;
  cursor: not-allowed;
}

.motion-action-message {
  min-height: 18px;
  margin: 9px 0 0;
  color: #586b84;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.motion-action-message.is-error {
  color: #ff8f9e;
}

.motion-workspace {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 17px;
  padding: 23px 28px 21px;
  overflow: auto;
  background-color: #080c13;
  background-image: linear-gradient(rgba(101, 133, 179, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(101, 133, 179, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

.motion-workspace-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.motion-workspace-head > div:first-child {
  min-width: 0;
}

.motion-workspace-head h1 {
  overflow: hidden;
  margin: 4px 0 0;
  color: #eff5ff;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.motion-current-state {
  display: grid;
  min-width: 112px;
  justify-items: end;
  gap: 3px;
}

.motion-current-state span {
  color: #596d88;
  font-size: 9px;
}

.motion-current-state strong {
  color: #80d8ff;
  font-size: 11px;
  font-weight: 620;
}

.motion-compare-grid {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.motion-preview-panel {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-rows: 48px minmax(260px, 1fr) 42px;
  border: 1px solid rgba(126, 161, 210, 0.19);
  border-radius: 8px;
  background: #0c121c;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.motion-preview-panel.is-output {
  border-color: rgba(91, 144, 230, 0.28);
}

.motion-preview-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(126, 161, 210, 0.12);
}

.motion-preview-panel > header div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.motion-preview-panel > header i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.motion-preview-panel > header i.is-source {
  background: #4ac8ff;
  box-shadow: 0 0 9px rgba(74, 200, 255, 0.58);
}

.motion-preview-panel > header i.is-output {
  background: #8c75ff;
  box-shadow: 0 0 9px rgba(140, 117, 255, 0.58);
}

.motion-preview-panel > header strong {
  color: #dfe9f8;
  font-size: 11px;
  font-weight: 620;
}

.motion-preview-panel > header > span {
  color: #60738e;
  font-size: 9px;
}

.motion-media-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: #05070b;
  color: inherit;
}

.motion-media-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #030406;
  object-fit: contain;
}

.motion-dropzone {
  cursor: pointer;
}

.motion-dropzone:focus-visible,
.motion-dropzone.is-dragging {
  box-shadow: inset 0 0 0 2px rgba(69, 186, 255, 0.72);
}

.motion-upload-empty,
.motion-output-empty {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #7588a4;
  text-align: center;
}

.motion-upload-empty strong,
.motion-output-empty > strong {
  color: #b9c8dc;
  font-size: 12px;
  font-weight: 600;
}

.motion-upload-empty small,
.motion-output-empty > small {
  color: #53647b;
  font-size: 9px;
}

.motion-upload-rules {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding-top: 11px;
  border-top: 1px solid rgba(98, 155, 210, 0.13);
  color: #6f87a5;
  font-size: 9px;
  line-height: 1.55;
}

.motion-upload-rules span:last-child {
  color: #78cfff;
}

.motion-upload-icon {
  position: relative;
  width: 48px;
  height: 42px;
  margin-bottom: 4px;
  border: 1px solid rgba(90, 177, 239, 0.34);
  border-radius: 7px;
  background: rgba(31, 103, 169, 0.1);
}

.motion-upload-icon::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #5ccaff;
  border-left: 2px solid #5ccaff;
  transform: translateX(-50%) rotate(45deg);
}

.motion-upload-icon::after {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 9px;
  left: 50%;
  width: 2px;
  border-radius: 2px;
  background: #5ccaff;
  transform: translateX(-50%);
}

.motion-output-stage {
  background: #070b12;
}

.motion-output-empty {
  gap: 6px;
}

.motion-scan-field {
  position: relative;
  width: 126px;
  height: 196px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(87, 178, 255, 0.26);
}

.motion-guide-character {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 154px;
  height: 178px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 18px rgba(81, 173, 255, 0.25));
}

.motion-preview-panel > footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-top: 1px solid rgba(126, 161, 210, 0.11);
  color: #5f728c;
  font-size: 9px;
}

.motion-preview-panel > footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.motion-output-actions button {
  min-width: 80px;
  height: 28px;
  border: 1px solid rgba(107, 143, 195, 0.17);
  border-radius: 6px;
  background: #111925;
  color: #53647b;
  font-size: 9px;
}

.motion-output-actions button:not(:disabled) {
  border-color: rgba(79, 181, 255, 0.42);
  color: #8bd9ff;
  cursor: pointer;
}

.motion-process-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #5589ba;
}

.motion-process-link span {
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: rgba(72, 165, 236, 0.3);
}

.motion-process-link i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(75, 168, 239, 0.27);
  border-radius: 50%;
  background: #0c1723;
  color: #61c6ff;
  font-size: 14px;
  font-style: normal;
}

.motion-task-meta {
  display: grid;
  min-width: 0;
  grid-template-columns: 1.15fr 1fr 1fr 0.8fr;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 161, 210, 0.14);
  border-radius: 7px;
  background: rgba(12, 18, 28, 0.92);
}

.motion-task-meta > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 11px 14px;
}

.motion-task-meta > div:not(:last-child) {
  border-right: 1px solid rgba(126, 161, 210, 0.1);
}

.motion-task-meta dt {
  color: #52637a;
  font-size: 9px;
}

.motion-task-meta dd {
  overflow: hidden;
  margin: 0;
  color: #aebdd0;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .motion-capture-head {
    grid-template-columns: minmax(260px, 1fr) auto;
  }

  .motion-capture-head__status {
    display: none;
  }

  .motion-stepper li {
    min-width: 96px;
  }

  .motion-stepper li:not(:last-child)::after {
    width: 18px;
    margin: 0 7px;
  }

  .motion-capture-layout {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  .motion-workspace {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 860px) {
  .motion-capture-view {
    overflow: auto;
  }

  .motion-capture-head {
    position: sticky;
    top: 0;
    z-index: 3;
    grid-template-columns: 1fr;
  }

  .motion-stepper {
    display: none;
  }

  .motion-capture-layout {
    display: block;
  }

  .motion-control-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(145, 170, 205, 0.12);
  }

  .motion-task-cost {
    margin-top: 18px;
  }

  .motion-workspace {
    overflow: visible;
  }

  .motion-compare-grid {
    grid-template-columns: 1fr;
  }

  .motion-process-link {
    min-height: 32px;
    transform: rotate(90deg);
  }

  .motion-task-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .motion-task-meta > div:nth-child(2) {
    border-right: 0;
  }

  .motion-task-meta > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(126, 161, 210, 0.1);
  }
}
