.movement-alert-dialog {
  width: min(500px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
.movement-alert-form {
  padding: 24px;
  display: grid;
  gap: 17px;
}
.movement-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.movement-dialog-header h2 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.45px;
}
.movement-dialog-header p {
  color: #888;
  font-size: 12px;
  margin-top: 6px;
}
.movement-dialog-header .icon-button {
  min-width: 32px;
  min-height: 32px;
  font-size: 23px;
  margin-top: -5px;
}
.movement-alert-dialog .field {
  margin: 0;
}
.movement-market-input {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #09090999;
  border: 1px solid #ffffff1c;
  padding: 0 11px;
  border-radius: 8px;
}
.movement-market-input:focus-within {
  border-color: #ffffff60;
  box-shadow: 0 0 0 3px #ffffff06;
}
.movement-market-input input {
  width: 100%;
  border: 0;
  background: none;
  padding: 11px 0;
  box-shadow: none;
  font-size: 12px;
}
.movement-market-input input:focus {
  box-shadow: none;
}
.movement-market-icon {
  display: inline-flex;
}
.movement-market-icon:empty {
  display: none;
}
.movement-market-icon .asset-logo {
  width: 22px;
  height: 22px;
}
.movement-direction-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.movement-direction {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #ffffff16;
  border-radius: 9px;
  background: #ffffff02;
  color: #999;
  text-align: left;
}
.movement-direction:hover {
  background: #ffffff05;
  border-color: #ffffff30;
}
.movement-direction strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.movement-direction small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: #848484;
}
.movement-direction-arrow {
  font-size: 22px;
  line-height: 1;
}
.movement-direction.bullish.selected {
  border-color: #32d49b70;
  background: #32d49b09;
  color: #63d8ad;
}
.movement-direction.bearish.selected {
  border-color: #ff657770;
  background: #ff657709;
  color: #ff8997;
}
.movement-size {
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 8px 12px;
}
.movement-trigger-choices {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #ffffff16;
  border-radius: 8px;
  background: #0003;
}
.movement-trigger-choices button {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #888;
  font-size: 11px;
}
.movement-trigger-choices button.selected {
  color: #ededed;
  border-color: #ffffff1c;
  background: #ffffff09;
}
.movement-custom-price > label {
  margin: 0 0 8px;
}
.movement-price-input input {
  padding-right: 65px;
}
.movement-size[hidden],
.movement-custom-price[hidden] {
  display: none;
}
.movement-size > label {
  grid-column: 1 / -1;
  margin: 0;
}
.movement-percent-input {
  position: relative;
  display: flex;
  align-items: center;
}
.movement-percent-input input {
  width: 100%;
  padding: 10px 25px 10px 11px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.movement-percent-input > span {
  position: absolute;
  right: 10px;
  color: #888;
  pointer-events: none;
}
.movement-presets {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.movement-presets button {
  background: #ffffff03;
  border: 1px solid #ffffff15;
  border-radius: 6px;
  padding: 7px 10px;
  color: #999;
  font-size: 11px;
}
.movement-presets button.selected {
  border-color: #ffffff40;
  color: #eee;
  background: #ffffff0b;
}
.movement-price-preview {
  display: grid;
  grid-template-columns: 1fr 25px 1fr;
  gap: 9px;
  align-items: center;
  padding: 15px;
  background: #ffffff03;
  border: 1px solid #ffffff0e;
  border-radius: 9px;
}
.movement-price-preview > div {
  min-width: 0;
}
.movement-price-preview > div > span {
  display: block;
  font-size: 10px;
  color: #888;
  margin-bottom: 7px;
}
.movement-price-preview strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 550;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.movement-reference-value {
  color: #d3d3d3;
}
.movement-preview-arrow {
  color: #555;
  font-size: 20px;
}
.movement-reference-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: -9px;
}
.movement-quote-note {
  color: #7c7c7c;
  font-size: 10px;
  line-height: 1.6;
  flex: 1;
}
.movement-reference-row .button {
  flex-shrink: 0;
  padding: 4px 7px;
  font-size: 9px;
}
.movement-summary {
  font-size: 12px;
  line-height: 1.7;
  color: #c0c0c0;
  border-left: 2px solid #ffffff25;
  padding-left: 11px;
}
.movement-frequency {
  border-top: 1px solid #ffffff10;
  padding-top: 12px;
}
.movement-frequency summary {
  font-size: 11px;
  color: #888;
  cursor: pointer;
}
.movement-frequency summary:hover {
  color: #ddd;
}
.movement-frequency label {
  margin-top: 13px;
}
.movement-frequency select {
  width: 100%;
}
.movement-frequency p {
  font-size: 10px;
  color: #777;
  line-height: 1.6;
  margin-top: 8px;
}
.movement-delivery-note {
  font-size: 10px;
  color: #777;
  line-height: 1.6;
}
.movement-alert-dialog .form-error {
  margin: 0;
}
.movement-alert-dialog .form-error:empty {
  display: none;
}
.movement-alert-dialog .dialog-actions {
  margin: 0;
  padding-top: 2px;
}
.movement-alert-dialog .dialog-actions > .primary {
  flex: 1;
}
.movement-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  font-size: 11px;
  border-radius: 5px;
  font-weight: 500;
}
.movement-tag.positive {
  background: #32d49b0c;
}
.movement-tag.negative {
  background: #ff65770c;
}
.movement-rule-target {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.movement-rule-target strong {
  font-size: 11px;
  font-weight: 500;
}
.movement-rule-target small {
  font-size: 9px;
  color: #777;
}
@media (max-width: 500px) {
  .movement-alert-form {
    padding: 20px;
    gap: 15px;
  }
  .movement-size {
    grid-template-columns: 92px 1fr;
    gap: 8px;
  }
  .movement-presets {
    gap: 4px;
  }
  .movement-presets button {
    padding: 7px 8px;
  }
  .movement-direction {
    gap: 8px;
    padding: 12px;
  }
  .movement-price-preview {
    padding: 12px;
    gap: 7px;
  }
  .movement-price-preview strong {
    font-size: 15px;
  }
}
