.market-activity-editor {
  width: min(730px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.market-activity-editor form > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.market-activity-editor form > label,
.market-activity-editor fieldset {
  margin-bottom: 12px;
}

.market-activity-editor fieldset {
  min-width: 0;
  border: 1px solid #e4e7ed;
  border-radius: 5px;
  padding: 10px 12px;
}

.market-activity-choices,
.market-activity-fields {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 9px;
}

.market-activity-editor [hidden] {
  display: none;
}

.market-activity-choices label,
.market-activity-editor .market-activity-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.market-activity-fields label {
  flex: 1 1 130px;
}

.market-activity-fields input {
  min-width: 0;
  width: 100%;
}

.market-activity-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.market-activity-heading p {
  margin: 5px 0 12px;
  color: #6b7280;
}

.market-activity-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #eef1f3;
  margin: 0 0 12px;
}

.market-activity-tabs button[aria-selected="true"],
.market-activity-tabs button[aria-pressed="true"] {
  box-shadow: inset 0 -2px #16b765;
  color: #109f55;
}
