/* Batch live trading: make the selected-add action and its amount prompt legible. */
.live-desk .execution-actions .batch.add-selected,
.live-desk .execution-actions .batch.add-selected.direction-long {
  border: 1px solid #4bbca9 !important;
  background: #153d3c !important;
  color: #effffb !important;
  box-shadow: inset 0 1px 0 #ffffff14 !important;
}

.live-desk .execution-actions .batch.add-selected.direction-short {
  border-color: #d38793 !important;
  background: #422935 !important;
  color: #fff2f4 !important;
}

.live-desk .execution-actions .batch.add-selected b,
.live-desk .execution-actions .batch.add-selected span {
  color: inherit !important;
}

.live-desk .execution-actions .batch.add-selected:not(:disabled):hover,
.live-desk .execution-actions .batch.add-selected:not(:disabled):focus-visible {
  background: #205650 !important;
  border-color: #86e0ce !important;
  box-shadow: 0 0 0 3px #4bbca933 !important;
}

.live-desk .execution-actions .batch.add-selected.direction-short:not(:disabled):hover,
.live-desk .execution-actions .batch.add-selected.direction-short:not(:disabled):focus-visible {
  background: #57323f !important;
  border-color: #f0acb7 !important;
  box-shadow: 0 0 0 3px #d3879333 !important;
}

.live-desk .execution-actions .batch.add-selected:disabled {
  border-color: #3c5960 !important;
  background: #172a32 !important;
  color: #b2c3c9 !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

/* Element Plus teleports the amount prompt outside .live-desk. */
.el-message-box:is(.mcc-add-position-dialog, :has(.mcc-add-amount-summary), :has(.el-message-box__input input[placeholder*="每币追加"]), :has(.el-message-box__input input[placeholder*="每币加仓"])) {
  border: 1px solid #4a6978 !important;
  background: #142737 !important;
  color: #e9f5fb !important;
  box-shadow: 0 20px 60px #0009 !important;
}

.el-message-box:is(.mcc-add-position-dialog, :has(.mcc-add-amount-summary), :has(.el-message-box__input input[placeholder*="每币追加"]), :has(.el-message-box__input input[placeholder*="每币加仓"])) :is(.el-message-box__title, .el-message-box__message) {
  color: #e9f5fb !important;
}

.el-message-box:is(.mcc-add-position-dialog, :has(.mcc-add-amount-summary), :has(.el-message-box__input input[placeholder*="每币追加"]), :has(.el-message-box__input input[placeholder*="每币加仓"])) .el-input__wrapper {
  border: 1px solid #64889a !important;
  border-radius: 8px !important;
  background: #0a1b29 !important;
  box-shadow: none !important;
}

.el-message-box:is(.mcc-add-position-dialog, :has(.mcc-add-amount-summary), :has(.el-message-box__input input[placeholder*="每币追加"]), :has(.el-message-box__input input[placeholder*="每币加仓"])) .el-input__wrapper.is-focus {
  border-color: #7fe0cf !important;
  box-shadow: 0 0 0 3px #4bbca933 !important;
}

.el-message-box:is(.mcc-add-position-dialog, :has(.mcc-add-amount-summary), :has(.el-message-box__input input[placeholder*="每币追加"]), :has(.el-message-box__input input[placeholder*="每币加仓"])) .el-input__inner {
  color: #f5fbff !important;
  background: #0a1b29 !important;
  caret-color: #7fe0cf !important;
  -webkit-text-fill-color: #f5fbff !important;
}

.el-message-box:is(.mcc-add-position-dialog, :has(.mcc-add-amount-summary), :has(.el-message-box__input input[placeholder*="每币追加"]), :has(.el-message-box__input input[placeholder*="每币加仓"])) .el-input__inner::placeholder {
  color: #a1b6c3 !important;
  -webkit-text-fill-color: #a1b6c3 !important;
}

.el-message-box:is(.mcc-add-position-dialog, :has(.mcc-add-amount-summary), :has(.el-message-box__input input[placeholder*="每币追加"]), :has(.el-message-box__input input[placeholder*="每币加仓"])) .el-message-box__btns .el-button:not(.el-button--primary) {
  border-color: #5c7887 !important;
  background: #203746 !important;
  color: #e9f5fb !important;
}

.el-message-box:is(.mcc-add-position-dialog, :has(.mcc-add-amount-summary), :has(.el-message-box__input input[placeholder*="每币追加"]), :has(.el-message-box__input input[placeholder*="每币加仓"])) .el-message-box__btns .el-button--primary {
  border-color: #76d5bf !important;
  background: #195d52 !important;
  color: #f5fffb !important;
}

/* Stable identity: text changes cannot disable the contrast rules. */
.el-message-box.mcc-add-position-dialog {
  color-scheme: dark;
  width: min(560px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 22px;
  --el-text-color-primary: #f5fbff;
  --el-text-color-regular: #e9f5fb;
  --el-fill-color-blank: #0a1b29;
  --el-bg-color: #142737;
}
.el-message-box.mcc-add-position-dialog .el-input__inner {
  font-size: 18px; line-height: 1.5; min-height: 42px;
  opacity: 1 !important;
}
.el-message-box.mcc-add-position-dialog .el-input__inner::selection {
  background: #79dcc0; color: #081b23; -webkit-text-fill-color: #081b23;
}
.el-message-box.mcc-add-position-dialog .el-input__inner:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #0a1b29 inset !important;
  -webkit-text-fill-color: #f5fbff !important;
  caret-color: #7fe0cf !important;
}
.el-message-box.mcc-add-position-dialog .el-message-box__close {
  color: #b8cddd !important;
}
.el-message-box.mcc-add-position-dialog .el-message-box__errormsg {
  color: #ffb4b9 !important;
}
.el-message-box.mcc-add-position-dialog .el-button {
  min-height: 42px; opacity: 1 !important;
}
.el-message-box.mcc-add-position-dialog .el-button > span {
  color: inherit !important; -webkit-text-fill-color: currentColor !important;
}
.el-message-box.mcc-add-position-dialog .el-button:focus-visible {
  outline: 2px solid #79dcc0; outline-offset: 3px;
}
